File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 497497 "value" : " MIT"
498498 }
499499 ]
500+ },
501+ {
502+ "type" : " div" ,
503+ "children" : [
504+ {
505+ "type" : " div" ,
506+ "children" : []
507+ }
508+ ]
500509 }
501510 ]
502- }
511+ }
Original file line number Diff line number Diff line change @@ -165,9 +165,14 @@ test('structural pseudo-classes', function (t) {
165165 path ( ast , [ 10 , 2 , 1 ] ) ,
166166 path ( ast , [ 10 , 2 , 2 ] )
167167 ] ) ;
168- t . deepEqual ( select ( ast , 'definition:nth-last-child(odd )' )
168+ t . deepEqual ( select ( ast , 'definition:nth-last-child(even )' )
169169 . map ( function ( node ) { return node . identifier } ) ,
170170 [ 'viverra' , 'interdum' ] ) ;
171+ t . deepEqual ( select ( ast ,
172+ ':root > :nth-last-child(n+2):nth-last-child(-n+3)' ) , [
173+ path ( ast , [ 16 ] ) ,
174+ path ( ast , [ 17 ] )
175+ ] ) ;
171176 t . end ( ) ;
172177 } ) ;
173178
You can’t perform that action at this time.
0 commit comments