Skip to content

Commit b146f71

Browse files
committed
WIP
1 parent 7cd61fe commit b146f71

10 files changed

+39
-1325
lines changed

tests/apply.test.js

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from 'fs'
22
import path from 'path'
33
import { DEFAULTS_LAYER } from '../src/lib/expandTailwindAtRules.js'
44

5-
import { run, html, css } from './util/run'
5+
import { run, html, css, defaults } from './util/run'
66

77
test('@apply', () => {
88
let config = {
@@ -866,53 +866,7 @@ it('apply does not emit defaults in isolated environments without optimizeUniver
866866

867867
return run(input, config).then((result) => {
868868
return expect(result.css).toMatchFormattedCss(css`
869-
*,
870-
::before,
871-
::after {
872-
--tw-translate-x: 0;
873-
--tw-translate-y: 0;
874-
--tw-rotate: 0;
875-
--tw-skew-x: 0;
876-
--tw-skew-y: 0;
877-
--tw-scale-x: 1;
878-
--tw-scale-y: 1;
879-
--tw-pan-x: ;
880-
--tw-pan-y: ;
881-
--tw-pinch-zoom: ;
882-
--tw-scroll-snap-strictness: proximity;
883-
border-color: #e5e7eb;
884-
--tw-ordinal: ;
885-
--tw-slashed-zero: ;
886-
--tw-numeric-figure: ;
887-
--tw-numeric-spacing: ;
888-
--tw-numeric-fraction: ;
889-
--tw-ring-inset: ;
890-
--tw-ring-offset-width: 0px;
891-
--tw-ring-offset-color: #fff;
892-
--tw-ring-color: rgb(59 130 246 / 0.5);
893-
--tw-ring-offset-shadow: 0 0 #0000;
894-
--tw-ring-shadow: 0 0 #0000;
895-
--tw-shadow: 0 0 #0000;
896-
--tw-shadow-colored: 0 0 #0000;
897-
--tw-blur: ;
898-
--tw-brightness: ;
899-
--tw-contrast: ;
900-
--tw-grayscale: ;
901-
--tw-hue-rotate: ;
902-
--tw-invert: ;
903-
--tw-saturate: ;
904-
--tw-sepia: ;
905-
--tw-drop-shadow: ;
906-
--tw-backdrop-blur: ;
907-
--tw-backdrop-brightness: ;
908-
--tw-backdrop-contrast: ;
909-
--tw-backdrop-grayscale: ;
910-
--tw-backdrop-hue-rotate: ;
911-
--tw-backdrop-invert: ;
912-
--tw-backdrop-opacity: ;
913-
--tw-backdrop-saturate: ;
914-
--tw-backdrop-sepia: ;
915-
}
869+
${defaults}
916870
.foo:focus {
917871
--tw-rotate: 90deg;
918872
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate))

0 commit comments

Comments
 (0)