Skip to content

Commit e443b08

Browse files
Re-enable feature flag
1 parent 88b762b commit e443b08

File tree

14 files changed

+91
-1436
lines changed

14 files changed

+91
-1436
lines changed

packages/@tailwindcss-postcss/src/__snapshots__/index.test.ts.snap

Lines changed: 0 additions & 383 deletions
Large diffs are not rendered by default.

packages/@tailwindcss-postcss/src/index.test.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -330,11 +330,7 @@ test('runs `Once` plugins in the right order', async () => {
330330
)
331331

332332
expect(result.css.trim()).toMatchInlineSnapshot(`
333-
":root, :host {
334-
--color-red-500: red;
335-
}
336-
337-
.custom-css {
333+
".custom-css {
338334
color: red;
339335
}"
340336
`)
@@ -347,11 +343,7 @@ test('runs `Once` plugins in the right order', async () => {
347343
}"
348344
`)
349345
expect(after).toMatchInlineSnapshot(`
350-
":root, :host {
351-
--color-red-500: red;
352-
}
353-
354-
.custom-css {
346+
".custom-css {
355347
color: red;
356348
}"
357349
`)

packages/tailwindcss/src/__snapshots__/index.test.ts.snap

Lines changed: 0 additions & 391 deletions
Large diffs are not rendered by default.

packages/tailwindcss/src/__snapshots__/utilities.test.ts.snap

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
exports[`border-* 1`] = `
44
":root, :host {
5-
--radius-none: 0px;
6-
--radius-full: 9999px;
7-
--radius-sm: .125rem;
85
--color-red-500: #ef4444;
96
}
107
@@ -127,9 +124,6 @@ exports[`border-* 1`] = `
127124

128125
exports[`border-b-* 1`] = `
129126
":root, :host {
130-
--radius-none: 0px;
131-
--radius-full: 9999px;
132-
--radius-sm: .125rem;
133127
--color-red-500: #ef4444;
134128
}
135129
@@ -252,9 +246,6 @@ exports[`border-b-* 1`] = `
252246

253247
exports[`border-e-* 1`] = `
254248
":root, :host {
255-
--radius-none: 0px;
256-
--radius-full: 9999px;
257-
--radius-sm: .125rem;
258249
--color-red-500: #ef4444;
259250
}
260251
@@ -377,9 +368,6 @@ exports[`border-e-* 1`] = `
377368

378369
exports[`border-l-* 1`] = `
379370
":root, :host {
380-
--radius-none: 0px;
381-
--radius-full: 9999px;
382-
--radius-sm: .125rem;
383371
--color-red-500: #ef4444;
384372
}
385373
@@ -502,9 +490,6 @@ exports[`border-l-* 1`] = `
502490

503491
exports[`border-r-* 1`] = `
504492
":root, :host {
505-
--radius-none: 0px;
506-
--radius-full: 9999px;
507-
--radius-sm: .125rem;
508493
--color-red-500: #ef4444;
509494
}
510495
@@ -627,9 +612,6 @@ exports[`border-r-* 1`] = `
627612

628613
exports[`border-s-* 1`] = `
629614
":root, :host {
630-
--radius-none: 0px;
631-
--radius-full: 9999px;
632-
--radius-sm: .125rem;
633615
--color-red-500: #ef4444;
634616
}
635617
@@ -752,9 +734,6 @@ exports[`border-s-* 1`] = `
752734

753735
exports[`border-t-* 1`] = `
754736
":root, :host {
755-
--radius-none: 0px;
756-
--radius-full: 9999px;
757-
--radius-sm: .125rem;
758737
--color-red-500: #ef4444;
759738
}
760739
@@ -877,9 +856,6 @@ exports[`border-t-* 1`] = `
877856

878857
exports[`border-x-* 1`] = `
879858
":root, :host {
880-
--radius-none: 0px;
881-
--radius-full: 9999px;
882-
--radius-sm: .125rem;
883859
--color-red-500: #ef4444;
884860
}
885861
@@ -1002,9 +978,6 @@ exports[`border-x-* 1`] = `
1002978

1003979
exports[`border-y-* 1`] = `
1004980
":root, :host {
1005-
--radius-none: 0px;
1006-
--radius-full: 9999px;
1007-
--radius-sm: .125rem;
1008981
--color-red-500: #ef4444;
1009982
}
1010983

packages/tailwindcss/src/compat/config.test.ts

Lines changed: 14 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,7 @@ describe('theme callbacks', () => {
322322

323323
expect(compiler.build(['leading-base', 'leading-md', 'leading-xl', 'prose']))
324324
.toMatchInlineSnapshot(`
325-
":root, :host {
326-
--text-base: 100rem;
327-
--text-md--line-height: 101rem;
328-
}
329-
.prose {
325+
".prose {
330326
[class~=lead-base] {
331327
font-size: 100rem;
332328
line-height: 201rem;
@@ -562,12 +558,7 @@ describe('default font family compatibility', () => {
562558
})
563559

564560
expect(compiler.build(['font-sans'])).toMatchInlineSnapshot(`
565-
":root, :host {
566-
--default-font-family: Potato Sans;
567-
--default-font-feature-settings: normal;
568-
--default-font-variation-settings: normal;
569-
}
570-
.font-sans {
561+
".font-sans {
571562
font-family: Potato Sans;
572563
}
573564
"
@@ -601,12 +592,7 @@ describe('default font family compatibility', () => {
601592
})
602593

603594
expect(compiler.build(['font-sans'])).toMatchInlineSnapshot(`
604-
":root, :host {
605-
--default-font-family: Potato Sans;
606-
--default-font-feature-settings: "cv06";
607-
--default-font-variation-settings: normal;
608-
}
609-
.font-sans {
595+
".font-sans {
610596
font-family: Potato Sans;
611597
font-feature-settings: "cv06";
612598
}
@@ -641,12 +627,7 @@ describe('default font family compatibility', () => {
641627
})
642628

643629
expect(compiler.build(['font-sans'])).toMatchInlineSnapshot(`
644-
":root, :host {
645-
--default-font-family: Potato Sans;
646-
--default-font-feature-settings: normal;
647-
--default-font-variation-settings: "XHGT" 0.7;
648-
}
649-
.font-sans {
630+
".font-sans {
650631
font-family: Potato Sans;
651632
font-variation-settings: "XHGT" 0.7;
652633
}
@@ -684,12 +665,7 @@ describe('default font family compatibility', () => {
684665
})
685666

686667
expect(compiler.build(['font-sans'])).toMatchInlineSnapshot(`
687-
":root, :host {
688-
--default-font-family: Potato Sans;
689-
--default-font-feature-settings: "cv06";
690-
--default-font-variation-settings: "XHGT" 0.7;
691-
}
692-
.font-sans {
668+
".font-sans {
693669
font-family: Potato Sans;
694670
font-feature-settings: "cv06";
695671
font-variation-settings: "XHGT" 0.7;
@@ -729,9 +705,6 @@ describe('default font family compatibility', () => {
729705

730706
expect(compiler.build(['font-sans'])).toMatchInlineSnapshot(`
731707
":root, :host {
732-
--default-font-family: var(--font-family-sans);
733-
--default-font-feature-settings: var(--font-family-sans--font-feature-settings);
734-
--default-font-variation-settings: var(--font-family-sans--font-variation-settings);
735708
--font-sans: Sandwich Sans;
736709
}
737710
.font-sans {
@@ -768,12 +741,7 @@ describe('default font family compatibility', () => {
768741
})
769742

770743
expect(compiler.build(['font-sans'])).toMatchInlineSnapshot(`
771-
":root, :host {
772-
--default-font-family: Inter, system-ui, sans-serif;
773-
--default-font-feature-settings: normal;
774-
--default-font-variation-settings: normal;
775-
}
776-
.font-sans {
744+
".font-sans {
777745
font-family: Inter, system-ui, sans-serif;
778746
}
779747
"
@@ -806,14 +774,7 @@ describe('default font family compatibility', () => {
806774
}),
807775
})
808776

809-
expect(compiler.build(['font-sans'])).toMatchInlineSnapshot(`
810-
":root, :host {
811-
--default-font-family: var(--font-family-sans);
812-
--default-font-feature-settings: var(--font-family-sans--font-feature-settings);
813-
--default-font-variation-settings: var(--font-family-sans--font-variation-settings);
814-
}
815-
"
816-
`)
777+
expect(compiler.build(['font-sans'])).toMatchInlineSnapshot(`""`)
817778
})
818779

819780
test('overriding `fontFamily.mono` sets `--default-mono-font-family`', async () => {
@@ -841,12 +802,7 @@ describe('default font family compatibility', () => {
841802
})
842803

843804
expect(compiler.build(['font-mono'])).toMatchInlineSnapshot(`
844-
":root, :host {
845-
--default-mono-font-family: Potato Mono;
846-
--default-mono-font-feature-settings: normal;
847-
--default-mono-font-variation-settings: normal;
848-
}
849-
.font-mono {
805+
".font-mono {
850806
font-family: Potato Mono;
851807
}
852808
"
@@ -880,12 +836,7 @@ describe('default font family compatibility', () => {
880836
})
881837

882838
expect(compiler.build(['font-mono'])).toMatchInlineSnapshot(`
883-
":root, :host {
884-
--default-mono-font-family: Potato Mono;
885-
--default-mono-font-feature-settings: "cv06";
886-
--default-mono-font-variation-settings: normal;
887-
}
888-
.font-mono {
839+
".font-mono {
889840
font-family: Potato Mono;
890841
font-feature-settings: "cv06";
891842
}
@@ -920,12 +871,7 @@ describe('default font family compatibility', () => {
920871
})
921872

922873
expect(compiler.build(['font-mono'])).toMatchInlineSnapshot(`
923-
":root, :host {
924-
--default-mono-font-family: Potato Mono;
925-
--default-mono-font-feature-settings: normal;
926-
--default-mono-font-variation-settings: "XHGT" 0.7;
927-
}
928-
.font-mono {
874+
".font-mono {
929875
font-family: Potato Mono;
930876
font-variation-settings: "XHGT" 0.7;
931877
}
@@ -963,12 +909,7 @@ describe('default font family compatibility', () => {
963909
})
964910

965911
expect(compiler.build(['font-mono'])).toMatchInlineSnapshot(`
966-
":root, :host {
967-
--default-mono-font-family: Potato Mono;
968-
--default-mono-font-feature-settings: "cv06";
969-
--default-mono-font-variation-settings: "XHGT" 0.7;
970-
}
971-
.font-mono {
912+
".font-mono {
972913
font-family: Potato Mono;
973914
font-feature-settings: "cv06";
974915
font-variation-settings: "XHGT" 0.7;
@@ -1008,9 +949,6 @@ describe('default font family compatibility', () => {
1008949

1009950
expect(compiler.build(['font-mono'])).toMatchInlineSnapshot(`
1010951
":root, :host {
1011-
--default-mono-font-family: var(--font-mono);
1012-
--default-mono-font-feature-settings: var(--font-mono--font-feature-settings);
1013-
--default-mono-font-variation-settings: var(--font-mono--font-variation-settings);
1014952
--font-mono: Sandwich Mono;
1015953
}
1016954
.font-mono {
@@ -1046,14 +984,7 @@ describe('default font family compatibility', () => {
1046984
}),
1047985
})
1048986

1049-
expect(compiler.build(['font-mono'])).toMatchInlineSnapshot(`
1050-
":root, :host {
1051-
--default-mono-font-family: var(--font-family-mono);
1052-
--default-mono-font-feature-settings: var(--font-family-mono--font-feature-settings);
1053-
--default-mono-font-variation-settings: var(--font-family-mono--font-variation-settings);
1054-
}
1055-
"
1056-
`)
987+
expect(compiler.build(['font-mono'])).toMatchInlineSnapshot(`""`)
1057988
})
1058989
})
1059990

@@ -1179,13 +1110,7 @@ test('merges css breakpoints with js config screens', async () => {
11791110

11801111
expect(compiler.build(['sm:flex', 'md:flex', 'lg:flex', 'min-sm:max-md:underline']))
11811112
.toMatchInlineSnapshot(`
1182-
":root, :host {
1183-
--breakpoint-md: 50rem;
1184-
--breakpoint-lg: 64rem;
1185-
--breakpoint-xl: 80rem;
1186-
--breakpoint-2xl: 96rem;
1187-
}
1188-
.sm\\:flex {
1113+
".sm\\:flex {
11891114
@media (width >= 44rem) {
11901115
display: flex;
11911116
}
@@ -1333,12 +1258,7 @@ test('Prefixes configured in CSS take precedence over those defined in JS config
13331258
)
13341259

13351260
expect(compiler.build(['wat:custom'])).toMatchInlineSnapshot(`
1336-
":root, :host {
1337-
--wat-color-red: #f00;
1338-
--wat-color-green: #0f0;
1339-
--wat-breakpoint-sm: 640px;
1340-
}
1341-
.wat\\:custom {
1261+
".wat\\:custom {
13421262
color: red;
13431263
}
13441264
"

0 commit comments

Comments
 (0)