[csswg-drafts] [selectors-4] Clarity about whitespace between `:nth-child()`'s "of" and "S" (#8285)

zrhoffman has just created a new issue for https://github.com/w3c/csswg-drafts:

== [selectors-4] Clarity about whitespace between `:nth-child()`'s "of" and "S" ==
Should things like `:nth-child(1 of/* my comment */body)` or `:nth-child(1 of.c)` parse?

From CSS Syntax 3:
https://github.com/w3c/csswg-drafts/blob/7e7ead7a91dc4c2162eb3be994d7cfda96c1dd66/css-syntax-3/Overview.bs#L3324-L3328

I was unable to find any mention of whitespace being required for `of S` in the CSS Selectors 4 [`:nth-child()` pseudo-class](https://drafts.csswg.org/selectors-4/#the-nth-child-pseudo) or [`:nth-last-child()` pseudo-class](https://drafts.csswg.org/selectors-4/#the-nth-last-child-pseudo) sections.

So should `<ident-token "of"> <complex-real-selector-list>` parse?

- If not, the CSS Selectors 4 `:nth-child()`  and `:nth-last-child()` prose would probably benefit from clarification.

- If so, some examples would be nice.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8285 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 6 January 2023 22:14:12 UTC