[csswg-drafts] [selectors-4][css-lists-3] Define depth of `::` (#8229)

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

== [selectors-4][css-lists-3] Define depth of `::` ==
I think this note from [CSS Lists and Counters](https://drafts.csswg.org/css-lists-3/#marker-properties) should be normatively defined in Selectors, maybe in [3.6.4. Sub-pseudo-elements](https://drafts.csswg.org/selectors-4/#sub-pseudo-elements):

  > Note: Although the `::marker` pseudo-element can represent the marker box of a `::before` or `::after` pseudo-element, the compound selector `::marker`, which expands to `*::marker`, will not select these markers—**an originating element that is a pseudo-element needs to be explicitly specified in the selector**, e.g. `::before::marker`.

CSS View Transitions currently has the [following part](https://drafts.csswg.org/css-view-transitions-1/#selectordef-view-transition-group-pt-name-selector):

  > `::view-transition-group( <pt-name-selector> )`
  >
  > [...] Its originating element is the `::view-transition` pseudo-element.
  >
  > ```css
  > html::view-transition-group(*) {
  >   /* ... */
  > }
  > ```

There is a [pending PR](https://github.com/w3c/csswg-drafts/pull/8126) saying that `::view-transition-*()` are selected from their ultimating originating element (`:root`).

So it maybe helpfull to clarify if `::` represents a child or descendant pseudo-element combinator.

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


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

Received on Thursday, 15 December 2022 15:08:52 UTC