Commit 6084ade 1 parent 5b42b1c commit 6084ade Copy full SHA for 6084ade
File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 185
185
test_if ( `if(style(--x):a)if(style(--x):b)` ,
186
186
[ [ '--x' , '3' ] ] ,
187
187
'a/**/b' ) ;
188
+ test_if ( `if(style(--x!): true_value;
189
+ else: false_value)` ,
190
+ [ [ '--x' , '3' ] ] ,
191
+ 'false_value' ) ;
192
+ test_if ( `if(style(color: green): true_value;
193
+ else: false_value)` ,
194
+ [ ] ,
195
+ 'false_value' ) ;
188
196
189
197
// Valid if() with multiple conditions with unregistered custom properties
190
198
test_if ( `if(style(--non-existent): value1;
491
499
else: false_value)` ,
492
500
[ [ '--x' , '3' ] ] ,
493
501
'' ) ;
494
- test_if ( `if(style(--x!) : true_value;
502
+ test_if ( `if(style(--x) and invalid : true_value;
495
503
else: false_value)` ,
496
504
[ [ '--x' , '3' ] ] ,
497
505
'' ) ;
498
- test_if ( `if(style(color: green ): true_value;
506
+ test_if ( `if(invalid or style(--x ): true_value;
499
507
else: false_value)` ,
500
- [ ] ,
508
+ [ [ '--x' , '3' ] ] ,
501
509
'' ) ;
502
510
test_if ( `if(style(not (--x: 5) or (--z: 10px)): true_value;
503
511
else: false_value;)` ,
You can’t perform that action at this time.
0 commit comments