Skip to content

Commit f45a835

Browse files
committed
[selectors-4] :nth-child() and :nth-last-child() also use forgiving-selector parsing, per original resolution. w3c#3264
1 parent 5bef870 commit f45a835

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

selectors-4/Overview.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2817,7 +2817,8 @@ Child-indexed Pseudo-classes</h3>
28172817
pseudo-class notation represents elements that
28182818
are among <var>An+B</var>th elements
28192819
from the list composed of
2820-
their <a>inclusive siblings</a> that match the <a>selector list</a> <var>S</var>.
2820+
their <a>inclusive siblings</a> that match the <a>selector list</a> <var>S</var>,
2821+
which is [=parsed as a forgiving selector list=].
28212822
If <var>S</var> is omitted,
28222823
it defaults to ''*|*''.
28232824

@@ -2914,6 +2915,7 @@ Child-indexed Pseudo-classes</h3>
29142915
from the list composed of
29152916
their <a>inclusive siblings</a> that match the <a>selector list</a> <var>S</var>,
29162917
counting backwards from the end.
2918+
<var>S</var> is [=parsed as a forgiving selector list=].
29172919
If <var>S</var> is omitted,
29182920
it defaults to ''*|*''.
29192921

0 commit comments

Comments
 (0)