You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test('--theme(…) contains the fallback when the default namespace is unset and a prior `--theme(…)` function contains `initial` in @reference',async()=>{
238
+
test('--theme(…) injects the fallback when the value it refers is set to a `--theme(…)` function containing `initial` in @reference mode',async()=>{
test('--theme(…) returns the fallback when the default namespace is unset and a prior `--theme(…)` function returns `initial` as inline value',async()=>{
255
+
test('--theme(…) returns the fallback when the value it refers is set to a `--theme(…)` function that returns `initial` as inline value',async()=>{
test('--theme(…) returns the fallback when the default namespace is unset in @reference mode',async()=>{
272
+
test('--theme(…) returns the fallback when the value it refers is set to a `--theme(…)` function that returns `initial` as inline value in @reference mode',async()=>{
`[Error: The --theme(…) function can only be used with CSS variables from your theme.]`,
372
372
)
373
+
374
+
expect(()=>
375
+
compileCss(css`
376
+
@theme {
377
+
--color-red-500:#f00;
378
+
}
379
+
.red {
380
+
color:--theme(--color-green-500);
381
+
}
382
+
`),
383
+
).rejects.toThrowErrorMatchingInlineSnapshot(
384
+
`[Error: Could not resolve value for theme function: \`theme(--color-green-500)\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.]`,
0 commit comments