@@ -107,7 +107,7 @@ test('variants without & or an at-rule are ignored', () => {
107
107
108
108
test ( 'arbitrary variants are sorted after other variants' , ( ) => {
109
109
let config = {
110
- content : [ { raw : html `<div class= "underline lg:underline [&>*]:underline" > </ div> ` } ] ,
110
+ content : [ { raw : html `<div class= "[&>*]:underline underline lg :underline" > </ div> ` } ] ,
111
111
corePlugins : { preflight : false } ,
112
112
}
113
113
@@ -626,6 +626,12 @@ it('should support aria variants', () => {
626
626
<div class= "aria-[sort=ascending]:underline" > </ div>
627
627
<div class= "group-aria-checked:underline" > </ div>
628
628
<div class= "peer-aria-checked:underline" > </ div>
629
+ <div class= "group-aria-checked/foo:underline" > </ div>
630
+ <div class= "peer-aria-checked/foo:underline" > </ div>
631
+ <div class= "group-aria-[sort=ascending]:underline" > </ div>
632
+ <div class= "peer-aria-[sort=ascending]:underline" > </ div>
633
+ <div class= "group-aria-[sort=ascending]/foo:underline" > </ div>
634
+ <div class= "peer-aria-[sort=ascending]/foo:underline" > </ div>
629
635
</ div>
630
636
` ,
631
637
} ,
@@ -648,9 +654,27 @@ it('should support aria variants', () => {
648
654
.group [aria-checked = 'true' ] .group-aria-checked\:underline {
649
655
text-decoration-line : underline;
650
656
}
657
+ .group\/foo [aria-checked = 'true' ] .group-aria-checked\/foo\:underline {
658
+ text-decoration-line : underline;
659
+ }
660
+ .group [aria-sort = 'ascending' ] .group-aria-\[sort\=ascending\]\:underline {
661
+ text-decoration-line : underline;
662
+ }
663
+ .group\/foo [aria-sort = 'ascending' ] .group-aria-\[sort\=ascending\]\/foo\:underline {
664
+ text-decoration-line : underline;
665
+ }
651
666
.peer [aria-checked = 'true' ] ~ .peer-aria-checked\:underline {
652
667
text-decoration-line : underline;
653
668
}
669
+ .peer\/foo [aria-checked = 'true' ] ~ .peer-aria-checked\/foo\:underline {
670
+ text-decoration-line : underline;
671
+ }
672
+ .peer [aria-sort = 'ascending' ] ~ .peer-aria-\[sort\=ascending\]\:underline {
673
+ text-decoration-line : underline;
674
+ }
675
+ .peer\/foo [aria-sort = 'ascending' ] ~ .peer-aria-\[sort\=ascending\]\/foo\:underline {
676
+ text-decoration-line : underline;
677
+ }
654
678
` )
655
679
} )
656
680
} )
0 commit comments