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

+11-3
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ The Specificity-adjustment Pseudo-class: '':where()''</h3>
12251225
The Relational Pseudo-class: '':has()''</h3>
12261226

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

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

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

0 commit comments

Comments
 (0)