[csswg-drafts] [selectors-4] pseudo-elements in section 3

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

== [selectors-4] pseudo-elements in section 3 ==
Refs:
  1.  issue 2 in https://drafts.csswg.org/selectors/#structure
  2. https://drafts.csswg.org/selectors/#pseudo-elements

## About section 3.6 (the paragraphs between section's title and 3.6.1's title)
I am not sure this the role of selectors-4 to define what *IS* a pseudo-element. And the last paragraph there says pseudo-elements existing in CSS are defined elsewhere. Aren't these paragraphs more informative than normative? Hmmm...

## Section 3.6.1
There is a confusion here between "pseudo-element" and "pseudo-element selector". Most links to "pseudo-element" target section 3.6 while they should probably target 3.6.1 renamed "Pseudo-element selectors". I have the gut feeling the whole thing requires a clarification.
Similarly, the spec says "pseudo-classes" while it should probably say "pseudo-class selectors"...

## Issue 2
Yes, clearly, we need to add pseudo-element selectors to section 3.6.1.

## Section 3.6.4
Ah, I now understand why pseudo-element selectors are defined AFTER the general terminology and not before but the whole thing is hard to read: we define quite precisely what's allowed in a compound selector in section 3.1 and we're overriding that here for pseudo-element selectors; pseudo-element selectors that can themselves be followed by pseudo-classes... It gets a bit tricky.

Working on a clarification, stay tuned.

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

Received on Wednesday, 31 January 2018 08:55:11 UTC