We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0baed46 commit 9cd3d55Copy full SHA for 9cd3d55
packages/tailwindcss/src/index.test.ts
@@ -169,7 +169,10 @@ describe('compiling CSS', () => {
169
),
170
).toMatchInlineSnapshot(`
171
":root, :host {
172
+ --spacing-1\\.5: 1.5px;
173
--spacing-2_5: 2.5px;
174
+ --spacing-3\\.5: 3.5px;
175
+ --spacing-foo\\/bar: 3rem;
176
}
177
178
.m-1\\.5 {
@@ -1106,7 +1109,12 @@ describe('Parsing themes values from CSS', () => {
1106
1109
['w-1/2', 'w-75%'],
1107
1110
1108
1111
- ".w-1\\/2 {
1112
+ ":root, :host {
1113
+ --width-1\\/2: 75%;
1114
+ --width-75\\%: 50%;
1115
+ }
1116
+
1117
+ .w-1\\/2 {
1118
width: var(--width-1\\/2);
1119
1120
0 commit comments