Skip to content

Commit 61ed5ca

Browse files
committed
[selectors-4] Exclude pseudo-elements from :has() and :nth-child() #7463 #8212
1 parent 80e9be7 commit 61ed5ca

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

selectors-4/Overview.bs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ The Specificity-adjustment Pseudo-class: '':where()''
12251225
The Relational Pseudo-class: '':has()''
12261226

12271227
The relational pseudo-class, :has(),
1228-
is a functional pseudo-class taking a <> as an argument.
1228+
is a functional pseudo-class taking a <real-selector-list>> as an argument.
12291229
It represents an element if any of the relative selectors
12301230
would match at least one element
12311231
when [=anchor element|anchored against=] this element.
@@ -2905,7 +2905,7 @@ Child-indexed Pseudo-classes
29052905
are among An+Bth elements
29062906
from the list composed of
29072907
their inclusive siblings that match the selector list S,
2908-
which is a <>.
2908+
which is a <real-selector-list>>.
29092909
If S is omitted,
29102910
it defaults to ''*|*''.
29112911

@@ -3002,7 +3002,7 @@ Child-indexed Pseudo-classes
30023002
from the list composed of
30033003
their inclusive siblings that match the selector list S,
30043004
counting backwards from the end.
3005-
S is <>.
3005+
S is <real-selector-list>>.
30063006
If S is omitted,
30073007
it defaults to ''*|*''.
30083008

@@ -3530,17 +3530,25 @@ Grammar
35303530
35313531
<complex-selector-list> = <>#
35323532
3533+
<complex-real-selector-list> = <>#
3534+
35333535
<compound-selector-list> = <>#
35343536
35353537
<simple-selector-list> = <>#
35363538
35373539
<relative-selector-list> = <>#
35383540
3541+
<relative-real-selector-list> = <>#
3542+
35393543
<complex-selector> = [ <>? <>* ]!
35403544
[ <>? [ <>? <>* ]! ]*
35413545
3546+
<complex-real-selector> = <> [ <>? <> ]*
3547+
35423548
<relative-selector> = <>? <>
35433549
3550+
<relative-real-selector> = <>? <>
3551+
35443552
<compound-selector> = [ <>? <>* ]!
35453553
35463554
<pseudo-compound-selector> = <> <>*

0 commit comments

Comments
 (0)