@@ -713,13 +713,7 @@ test(
713
713
expect ( await fs . dumpFiles ( './dist/*.css' ) ) . toMatchInlineSnapshot ( `
714
714
"
715
715
--- ./dist/out.css ---
716
- @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
717
- @layer base {
718
- *, ::before, ::after, ::backdrop {
719
- --tw-content: "";
720
- }
721
- }
722
- }
716
+ @layer properties;
723
717
.content-\\[\\"components\\/my-component\\.tsx\\"\\] {
724
718
--tw-content: "components/my-component.tsx";
725
719
content: var(--tw-content);
@@ -761,6 +755,13 @@ test(
761
755
inherits: false;
762
756
initial-value: "";
763
757
}
758
+ @layer properties {
759
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
760
+ *, ::before, ::after, ::backdrop {
761
+ --tw-content: "";
762
+ }
763
+ }
764
+ }
764
765
"
765
766
` )
766
767
} ,
@@ -951,13 +952,7 @@ test(
951
952
expect ( await fs . dumpFiles ( './project-a/dist/*.css' ) ) . toMatchInlineSnapshot ( `
952
953
"
953
954
--- ./project-a/dist/out.css ---
954
- @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
955
- @layer base {
956
- *, ::before, ::after, ::backdrop {
957
- --tw-content: "";
958
- }
959
- }
960
- }
955
+ @layer properties;
961
956
.content-\\[\\'project-a\\/node_modules\\/my-lib-1\\/src\\/index\\.html\\'\\] {
962
957
--tw-content: 'project-a/node modules/my-lib-1/src/index.html';
963
958
content: var(--tw-content);
@@ -1011,6 +1006,13 @@ test(
1011
1006
inherits: false;
1012
1007
initial-value: "";
1013
1008
}
1009
+ @layer properties {
1010
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
1011
+ *, ::before, ::after, ::backdrop {
1012
+ --tw-content: "";
1013
+ }
1014
+ }
1015
+ }
1014
1016
"
1015
1017
` )
1016
1018
@@ -1195,13 +1197,7 @@ test(
1195
1197
expect ( await fs . dumpFiles ( './dist/*.css' ) ) . toMatchInlineSnapshot ( `
1196
1198
"
1197
1199
--- ./dist/out.css ---
1198
- @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
1199
- @layer base {
1200
- *, ::before, ::after, ::backdrop {
1201
- --tw-content: "";
1202
- }
1203
- }
1204
- }
1200
+ @layer properties;
1205
1201
.content-\\[\\"pages\\/foo\\.html\\"\\] {
1206
1202
--tw-content: "pages/foo.html";
1207
1203
content: var(--tw-content);
@@ -1219,6 +1215,13 @@ test(
1219
1215
inherits: false;
1220
1216
initial-value: "";
1221
1217
}
1218
+ @layer properties {
1219
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
1220
+ *, ::before, ::after, ::backdrop {
1221
+ --tw-content: "";
1222
+ }
1223
+ }
1224
+ }
1222
1225
"
1223
1226
` )
1224
1227
} ,
@@ -1588,27 +1591,8 @@ test(
1588
1591
"
1589
1592
--- ./dist/out.css ---
1590
1593
@import url('https://fonts.googleapis.com');
1594
+ @layer properties;
1591
1595
@layer theme, base, components, utilities;
1592
- @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
1593
- @layer base {
1594
- *, ::before, ::after, ::backdrop {
1595
- --tw-shadow: 0 0 #0000;
1596
- --tw-shadow-color: initial;
1597
- --tw-shadow-alpha: 100%;
1598
- --tw-inset-shadow: 0 0 #0000;
1599
- --tw-inset-shadow-color: initial;
1600
- --tw-inset-shadow-alpha: 100%;
1601
- --tw-ring-color: initial;
1602
- --tw-ring-shadow: 0 0 #0000;
1603
- --tw-inset-ring-color: initial;
1604
- --tw-inset-ring-shadow: 0 0 #0000;
1605
- --tw-ring-inset: initial;
1606
- --tw-ring-offset-width: 0px;
1607
- --tw-ring-offset-color: #fff;
1608
- --tw-ring-offset-shadow: 0 0 #0000;
1609
- }
1610
- }
1611
- }
1612
1596
@layer theme {
1613
1597
:root, :host {
1614
1598
--font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
@@ -1839,6 +1823,26 @@ test(
1839
1823
inherits: false;
1840
1824
initial-value: 0 0 #0000;
1841
1825
}
1826
+ @layer properties {
1827
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
1828
+ *, ::before, ::after, ::backdrop {
1829
+ --tw-shadow: 0 0 #0000;
1830
+ --tw-shadow-color: initial;
1831
+ --tw-shadow-alpha: 100%;
1832
+ --tw-inset-shadow: 0 0 #0000;
1833
+ --tw-inset-shadow-color: initial;
1834
+ --tw-inset-shadow-alpha: 100%;
1835
+ --tw-ring-color: initial;
1836
+ --tw-ring-shadow: 0 0 #0000;
1837
+ --tw-inset-ring-color: initial;
1838
+ --tw-inset-ring-shadow: 0 0 #0000;
1839
+ --tw-ring-inset: initial;
1840
+ --tw-ring-offset-width: 0px;
1841
+ --tw-ring-offset-color: #fff;
1842
+ --tw-ring-offset-shadow: 0 0 #0000;
1843
+ }
1844
+ }
1845
+ }
1842
1846
"
1843
1847
` )
1844
1848
} ,
0 commit comments