Skip to content

Commit 66c2c48

Browse files
So. Many. Snapshots
1 parent 7d6fabc commit 66c2c48

File tree

12 files changed

+1037
-800
lines changed

12 files changed

+1037
-800
lines changed

integrations/cli/index.test.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -714,8 +714,10 @@ test(
714714
"
715715
--- ./dist/out.css ---
716716
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
717-
*, ::before, ::after, ::backdrop {
718-
--tw-content: "";
717+
@layer base {
718+
*, ::before, ::after, ::backdrop {
719+
--tw-content: "";
720+
}
719721
}
720722
}
721723
.content-\\[\\"components\\/my-component\\.tsx\\"\\] {
@@ -950,8 +952,10 @@ test(
950952
"
951953
--- ./project-a/dist/out.css ---
952954
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
953-
*, ::before, ::after, ::backdrop {
954-
--tw-content: "";
955+
@layer base {
956+
*, ::before, ::after, ::backdrop {
957+
--tw-content: "";
958+
}
955959
}
956960
}
957961
.content-\\[\\'project-a\\/node_modules\\/my-lib-1\\/src\\/index\\.html\\'\\] {
@@ -1192,8 +1196,10 @@ test(
11921196
"
11931197
--- ./dist/out.css ---
11941198
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
1195-
*, ::before, ::after, ::backdrop {
1196-
--tw-content: "";
1199+
@layer base {
1200+
*, ::before, ::after, ::backdrop {
1201+
--tw-content: "";
1202+
}
11971203
}
11981204
}
11991205
.content-\\[\\"pages\\/foo\\.html\\"\\] {

integrations/postcss/source.test.ts

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,10 @@ test(
9595
"
9696
--- ./dist/out.css ---
9797
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
98-
*, ::before, ::after, ::backdrop {
99-
--tw-content: "";
98+
@layer base {
99+
*, ::before, ::after, ::backdrop {
100+
--tw-content: "";
101+
}
100102
}
101103
}
102104
.content-\\[\\"components\\/my-component\\.tsx\\"\\] {
@@ -330,8 +332,10 @@ test(
330332
"
331333
--- ./project-a/dist/out.css ---
332334
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
333-
*, ::before, ::after, ::backdrop {
334-
--tw-content: "";
335+
@layer base {
336+
*, ::before, ::after, ::backdrop {
337+
--tw-content: "";
338+
}
335339
}
336340
}
337341
.content-\\[\\'project-a\\/node_modules\\/my-lib-1\\/src\\/index\\.html\\'\\] {
@@ -590,8 +594,10 @@ test(
590594
"
591595
--- ./dist/out.css ---
592596
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
593-
*, ::before, ::after, ::backdrop {
594-
--tw-content: "";
597+
@layer base {
598+
*, ::before, ::after, ::backdrop {
599+
--tw-content: "";
600+
}
595601
}
596602
}
597603
.content-\\[\\"pages\\/foo\\.html\\"\\] {
@@ -699,8 +705,10 @@ test(
699705
"
700706
--- ./project-a/dist/out.css ---
701707
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
702-
*, ::before, ::after, ::backdrop {
703-
--tw-content: "";
708+
@layer base {
709+
*, ::before, ::after, ::backdrop {
710+
--tw-content: "";
711+
}
704712
}
705713
}
706714
.content-\\[\\'keep-me\\.html\\'\\] {

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = `
44
"@supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
5-
*, :before, :after, ::backdrop {
6-
--tw-font-weight: initial;
5+
@layer base {
6+
*, :before, :after, ::backdrop {
7+
--tw-font-weight: initial;
8+
}
79
}
810
}
911
@@ -266,7 +268,7 @@ exports[`\`@import 'tailwindcss'\` is replaced with the generated CSS 1`] = `
266268
}
267269
268270
.text-black\\/50 {
269-
color: oklab(0% none none / .5);
271+
color: #00000080;
270272
}
271273
272274
@supports (color: color-mix(in lab, red, red)) {

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

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@
22

33
exports[`compiling CSS > \`@tailwind utilities\` is replaced by utilities using the default theme 1`] = `
44
"@supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
5-
*, :before, :after, ::backdrop {
6-
--tw-shadow: 0 0 #0000;
7-
--tw-shadow-color: initial;
8-
--tw-shadow-alpha: 100%;
9-
--tw-inset-shadow: 0 0 #0000;
10-
--tw-inset-shadow-color: initial;
11-
--tw-inset-shadow-alpha: 100%;
12-
--tw-ring-color: initial;
13-
--tw-ring-shadow: 0 0 #0000;
14-
--tw-inset-ring-color: initial;
15-
--tw-inset-ring-shadow: 0 0 #0000;
16-
--tw-ring-inset: initial;
17-
--tw-ring-offset-width: 0px;
18-
--tw-ring-offset-color: #fff;
19-
--tw-ring-offset-shadow: 0 0 #0000;
5+
@layer base {
6+
*, :before, :after, ::backdrop {
7+
--tw-shadow: 0 0 #0000;
8+
--tw-shadow-color: initial;
9+
--tw-shadow-alpha: 100%;
10+
--tw-inset-shadow: 0 0 #0000;
11+
--tw-inset-shadow-color: initial;
12+
--tw-inset-shadow-alpha: 100%;
13+
--tw-ring-color: initial;
14+
--tw-ring-shadow: 0 0 #0000;
15+
--tw-inset-ring-color: initial;
16+
--tw-inset-ring-shadow: 0 0 #0000;
17+
--tw-ring-inset: initial;
18+
--tw-ring-offset-width: 0px;
19+
--tw-ring-offset-color: #fff;
20+
--tw-ring-offset-shadow: 0 0 #0000;
21+
}
2022
}
2123
}
2224

0 commit comments

Comments
 (0)