Skip to content

[selectors-4] Clarify how to parse S in <:nth-child()> #7398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cdoublev opened this issue Jun 21, 2022 · 1 comment
Closed

[selectors-4] Clarify how to parse S in <:nth-child()> #7398

cdoublev opened this issue Jun 21, 2022 · 1 comment
Labels
selectors-4 Current Work

Comments

@cdoublev
Copy link
Collaborator

cdoublev commented Jun 21, 2022

The value definitions of <:nth-child()> and <:nth-last-child()> includes S defined as a parsed as a forgiving selector list. But the first step of parsing as a forgiving selector list is:

  1. Parse a list of s from input, and let selector list be the result.

I assume that :nth-child(odd of ul > li) should be invalid because ul > li is a , but :nth-child(odd of li.foo, li.bar) is valid because li.foo, li.bar is a .

I guess that this situation comes from the resolution and the commits mentionned in #1292 and #3760.

I suggest to replace S by and to define it as is identical to , except it parses its components as rather than . Selectors 5 can replace by if s become valid.

@cdoublev
Copy link
Collaborator Author

Actually the resolution is to allow as S, sorry. I'm closing this duplicate and I assume that S will be replaced by .

@faceless2 faceless2 added the selectors-4 Current Work label Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
selectors-4 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants