@@ -185,7 +185,7 @@ crosscheck(({ stable, oxide }) => {
185185 `
186186
187187 return run ( input , config ) . then ( ( result ) => {
188- let oxideExpected = css `
188+ oxide . expect ( result . css ) . toMatchFormattedCss ( css `
189189 .inset-\[var\(--any-value \)\] {
190190 inset : var (--any-value );
191191 }
@@ -499,16 +499,22 @@ crosscheck(({ stable, oxide }) => {
499499 background-color : var (--any-value );
500500 }
501501 .from-\[var\(--any-value \)\] {
502- --tw-gradient-from : var (--any-value );
503- --tw-gradient-to : # fff0 ;
502+ --tw-gradient-from : var (--any-value ) var (--tw-gradient-from-position );
503+ --tw-gradient-from-position : ;
504+ --tw-gradient-to : # fff0 var (--tw-gradient-from-position );
505+ --tw-gradient-to-position : ;
504506 --tw-gradient-stops : var (--tw-gradient-from ), var (--tw-gradient-to );
505507 }
506508 .via-\[var\(--any-value \)\] {
507- --tw-gradient-to : # fff0 ;
508- --tw-gradient-stops : var (--tw-gradient-from ), var (--any-value ), var (--tw-gradient-to );
509+ --tw-gradient-via-position : ;
510+ --tw-gradient-to : # fff0 var (--tw-gradient-to-position );
511+ --tw-gradient-to-position : ;
512+ --tw-gradient-stops : var (--tw-gradient-from ),
513+ var (--any-value ) var (--tw-gradient-via-position ), var (--tw-gradient-to );
509514 }
510515 .to-\[var\(--any-value \)\] {
511- --tw-gradient-to : var (--any-value );
516+ --tw-gradient-to : var (--any-value ) var (--tw-gradient-to-position );
517+ --tw-gradient-to-position : ;
512518 }
513519 .fill-\[var\(--any-value \)\] {
514520 fill : var (--any-value );
@@ -732,8 +738,8 @@ crosscheck(({ stable, oxide }) => {
732738 --tw-content : var (--any-value );
733739 content : var (--tw-content );
734740 }
735- `
736- let stableExpected = css `
741+ ` )
742+ stable . expect ( result . css ) . toMatchFormattedCss ( css `
737743 .inset-\[var\(--any-value \)\] {
738744 inset : var (--any-value );
739745 }
@@ -1056,16 +1062,22 @@ crosscheck(({ stable, oxide }) => {
10561062 --tw-bg-opacity : var (--any-value );
10571063 }
10581064 .from-\[var\(--any-value \)\] {
1059- --tw-gradient-from : var (--any-value );
1060- --tw-gradient-to : # fff0 ;
1065+ --tw-gradient-from : var (--any-value ) var (--tw-gradient-from-position );
1066+ --tw-gradient-from-position : ;
1067+ --tw-gradient-to : # fff0 var (--tw-gradient-from-position );
1068+ --tw-gradient-to-position : ;
10611069 --tw-gradient-stops : var (--tw-gradient-from ), var (--tw-gradient-to );
10621070 }
10631071 .via-\[var\(--any-value \)\] {
1064- --tw-gradient-to : # fff0 ;
1065- --tw-gradient-stops : var (--tw-gradient-from ), var (--any-value ), var (--tw-gradient-to );
1072+ --tw-gradient-via-position : ;
1073+ --tw-gradient-to : # fff0 var (--tw-gradient-to-position );
1074+ --tw-gradient-to-position : ;
1075+ --tw-gradient-stops : var (--tw-gradient-from ),
1076+ var (--any-value ) var (--tw-gradient-via-position ), var (--tw-gradient-to );
10661077 }
10671078 .to-\[var\(--any-value \)\] {
1068- --tw-gradient-to : var (--any-value );
1079+ --tw-gradient-to : var (--any-value ) var (--tw-gradient-to-position );
1080+ --tw-gradient-to-position : ;
10691081 }
10701082 .fill-\[var\(--any-value \)\] {
10711083 fill : var (--any-value );
@@ -1298,9 +1310,7 @@ crosscheck(({ stable, oxide }) => {
12981310 --tw-content : var (--any-value );
12991311 content : var (--tw-content );
13001312 }
1301- `
1302- oxide . expect ( result . css ) . toMatchFormattedCss ( oxideExpected )
1303- stable . expect ( result . css ) . toMatchFormattedCss ( stableExpected )
1313+ ` )
13041314 } )
13051315 } )
13061316 test . todo ( 'rewrite the any test to be easier to understand or break it up into multiple tests' )
0 commit comments