@@ -1842,7 +1842,7 @@ describe('Parsing theme values from CSS', () => {
1842
1842
}
1843
1843
1844
1844
.bg-potato {
1845
- background-color: var(--color-potato);
1845
+ background-color: var(--color-potato, #ac855b );
1846
1846
}
1847
1847
1848
1848
.bg-tomato {
@@ -1874,7 +1874,7 @@ describe('Parsing theme values from CSS', () => {
1874
1874
) ,
1875
1875
) . toMatchInlineSnapshot ( `
1876
1876
".animate-foo {
1877
- animation: var(--animate-foo);
1877
+ animation: var(--animate-foo, foo 1s infinite );
1878
1878
}"
1879
1879
` )
1880
1880
} )
@@ -1911,7 +1911,7 @@ describe('Parsing theme values from CSS', () => {
1911
1911
}
1912
1912
1913
1913
.animate-foo {
1914
- animation: var(--animate-foo);
1914
+ animation: var(--animate-foo, foo 1s infinite );
1915
1915
}
1916
1916
1917
1917
.bg-pink {
@@ -1936,7 +1936,7 @@ describe('Parsing theme values from CSS', () => {
1936
1936
) ,
1937
1937
) . toMatchInlineSnapshot ( `
1938
1938
".bg-potato {
1939
- background-color: var(--color-potato);
1939
+ background-color: var(--color-potato, #c794aa );
1940
1940
}"
1941
1941
` )
1942
1942
} )
@@ -1991,11 +1991,11 @@ describe('Parsing theme values from CSS', () => {
1991
1991
}
1992
1992
1993
1993
.bg-avocado {
1994
- background-color: var(--color-avocado);
1994
+ background-color: var(--color-avocado, #c0cc6d );
1995
1995
}
1996
1996
1997
1997
.bg-potato {
1998
- background-color: var(--color-potato);
1998
+ background-color: var(--color-potato, #ac855b );
1999
1999
}
2000
2000
2001
2001
.bg-tomato {
@@ -2323,7 +2323,7 @@ describe('Parsing theme values from CSS', () => {
2323
2323
) ,
2324
2324
) . toMatchInlineSnapshot ( `
2325
2325
".bg-potato {
2326
- background-color: var(--color-potato);
2326
+ background-color: var(--color-potato, #efb46b );
2327
2327
}"
2328
2328
` )
2329
2329
} )
@@ -3849,20 +3849,8 @@ describe('`@reference "…" reference`', () => {
3849
3849
} ,
3850
3850
) ,
3851
3851
) . resolves . toMatchInlineSnapshot ( `
3852
- "@layer theme {
3853
- :root, :host {
3854
- --animate-spin: spin 1s linear infinite;
3855
- }
3856
- }
3857
-
3858
- .bar {
3859
- animation: var(--animate-spin);
3860
- }
3861
-
3862
- @keyframes spin {
3863
- to {
3864
- transform: rotate(360deg);
3865
- }
3852
+ ".bar {
3853
+ animation: var(--animate-spin, spin 1s linear infinite);
3866
3854
}"
3867
3855
` )
3868
3856
} )
@@ -3924,28 +3912,9 @@ describe('`@reference "…" reference`', () => {
3924
3912
{ loadStylesheet } ,
3925
3913
) ,
3926
3914
) . resolves . toMatchInlineSnapshot ( `
3927
- "@layer two {
3928
- @layer three {
3929
- :root, :host {
3930
- --color-red: red;
3931
- --animate-wiggle: wiggle 1s ease-in-out infinite;
3932
- }
3933
- }
3934
- }
3935
-
3936
- .bar {
3937
- animation: var(--animate-wiggle);
3938
- color: var(--color-red);
3939
- }
3940
-
3941
- @keyframes wiggle {
3942
- 0%, 100% {
3943
- transform: rotate(-3deg);
3944
- }
3945
-
3946
- 50% {
3947
- transform: rotate(3deg);
3948
- }
3915
+ ".bar {
3916
+ animation: var(--animate-wiggle, wiggle 1s ease-in-out infinite);
3917
+ color: var(--color-red, red);
3949
3918
}"
3950
3919
` )
3951
3920
} )
0 commit comments