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 497
497
"value" : " MIT"
498
498
}
499
499
]
500
+ },
501
+ {
502
+ "type" : " div" ,
503
+ "children" : [
504
+ {
505
+ "type" : " div" ,
506
+ "children" : []
507
+ }
508
+ ]
500
509
}
501
510
]
502
- }
511
+ }
Original file line number Diff line number Diff line change @@ -165,9 +165,14 @@ test('structural pseudo-classes', function (t) {
165
165
path ( ast , [ 10 , 2 , 1 ] ) ,
166
166
path ( ast , [ 10 , 2 , 2 ] )
167
167
] ) ;
168
- t . deepEqual ( select ( ast , 'definition:nth-last-child(odd )' )
168
+ t . deepEqual ( select ( ast , 'definition:nth-last-child(even )' )
169
169
. map ( function ( node ) { return node . identifier } ) ,
170
170
[ '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
+ ] ) ;
171
176
t . end ( ) ;
172
177
} ) ;
173
178
You can’t perform that action at this time.
0 commit comments