File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -4391,6 +4391,8 @@ describe('<selector-list>', () => {
4391
4391
'::before:not(:hover > type)' ,
4392
4392
// Invalid functional pseudo argument
4393
4393
':has(:not(:has(type)))' ,
4394
+ ':current(:not(type > type))' ,
4395
+ ':current(:not(:has(type)))' ,
4394
4396
':host(:not(type > type))' ,
4395
4397
':host(:not(:has(type)))' ,
4396
4398
':host-context(:not(type > type))' ,
Original file line number Diff line number Diff line change @@ -69,8 +69,8 @@ function preParseCalcValue(node) {
69
69
* @see {@link https://drafts.csswg.org/selectors-4/#typedef-combinator }
70
70
* @see {@link https://drafts.csswg.org/selectors-4/#pseudo-element-structure }
71
71
*
72
- * It aborts parsing a combinator when the context only allows a compound
73
- * selector .
72
+ * It aborts parsing a combinator when the context only allows compound
73
+ * selectors .
74
74
*
75
75
* It aborts parsing when the input is at the back of a pseudo-element with no
76
76
* internal structure but is still not at the end of the selector.
@@ -96,7 +96,7 @@ function preParseCombinator(node) {
96
96
}
97
97
}
98
98
const { context : { trees } } = node
99
- if ( trees . findLast ( tree => tree . definition . name === '<compound-selector>' ) ) {
99
+ if ( trees . findLast ( tree => tree . definition . name ?. startsWith ( '<compound-selector' ) ) ) {
100
100
return trees . at ( - 1 ) . definition . name ?. startsWith ( '<relative' ) ? error ( node ) : null
101
101
}
102
102
}
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ const structural = {
140
140
*/
141
141
const time = {
142
142
functions : {
143
- 'current' : '<selector-list>' ,
143
+ 'current' : '<compound- selector-list>' ,
144
144
} ,
145
145
identifiers : [
146
146
'current' ,
You can’t perform that action at this time.
0 commit comments