Skip to content

Commit b86026d

Browse files
committed
[selectors-4] Limit :nth-child() etc. to compound selectors. #3760
1 parent fecadfd commit b86026d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

selectors-4/Overview.bs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2834,7 +2834,7 @@ Child-indexed Pseudo-classes
28342834
are among An+Bth elements
28352835
from the list composed of
28362836
their inclusive siblings that match the selector list S,
2837-
which is [=parsed as a forgiving selector list=].
2837+
which is a <> [=parsed as a forgiving selector list=].
28382838
If S is omitted,
28392839
it defaults to ''*|*''.
28402840

@@ -2922,6 +2922,9 @@ Child-indexed Pseudo-classes
29222922
29232923
29242924

2925+
Note: We intend to extend '':nth-child()'' to accept <>
2926+
in Level 5.
2927+
29252928

29262929
'':nth-last-child()'' pseudo-class
29272930

@@ -2931,7 +2934,7 @@ Child-indexed Pseudo-classes
29312934
from the list composed of
29322935
their inclusive siblings that match the selector list S,
29332936
counting backwards from the end.
2934-
S is [=parsed as a forgiving selector list=].
2937+
S is <> [=parsed as a forgiving selector list=].
29352938
If S is omitted,
29362939
it defaults to ''*|*''.
29372940

@@ -2954,6 +2957,9 @@ Child-indexed Pseudo-classes
29542957
29552958
29562959

2960+
Note: We intend to extend '':nth-last-child()'' to accept <>
2961+
in Level 5.
2962+
29572963

29582964
'':first-child'' pseudo-class
29592965

@@ -4038,6 +4044,8 @@ Changes since the 21 November 2018 Working Draft
40384044
  • Defined '':is()'', '':where()'', '':has()'', '':nth-child()'', and '':nth-last-child()''
  • 40394045
    to not be themselves invalidated when containing an invalid selector.
    40404046
    4047+
  • Limited selectors in '':nth-child()'' and '':nth-last-child()'' to [=compound selectors=] for now.
  • 4048+
    40414049
  • Clarified case-sensitive string matching by referencing string identity as defined in [[INFRA]].
  • 40424050
  • Clarified that UA-provided placeholder text still triggers '':placeholder-shown''.
  • 40434051
  • Rewrote '':focus-visible'' definition for clarity.
  • 0 commit comments

    Comments
     (0)