[csswg-drafts] [view-transitions-1] Section 3.2.1 Conflates Pseudo-Elements and their Selectors (#12190)

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

== [view-transitions-1] Section 3.2.1 Conflates Pseudo-Elements and their Selectors ==
[3.2.1. Named View Transition Pseudo-elements](https://drafts.csswg.org/css-view-transitions-1/#named-view-transition-pseudo) says:
> Several of the [view transition pseudo-elements](https://drafts.csswg.org/css-view-transitions-1/#view-transition-pseudo-elements) are **named view transition pseudo-elements**, which are [functional](https://drafts.csswg.org/selectors-4/#functional-pseudo-element) [tree-abiding](https://www.w3.org/TR/css-pseudo-4/#tree-abiding) view transition pseudo-elements associated with a [view transition name](https://drafts.csswg.org/css-view-transitions-1/#view-transition-name). These pseudo-elements take a [<pt-name-selector>](https://drafts.csswg.org/css-view-transitions-1/#typedef-pt-name-selector) as their argument, and their syntax follows the pattern:
::view-transition-pseudo([<pt-name-selector>](https://drafts.csswg.org/css-view-transitions-1/#typedef-pt-name-selector))

Then it goes on to say:
> A [named view transition pseudo-element](https://drafts.csswg.org/css-view-transitions-1/#named-view-transition-pseudo-elements) [selector](https://drafts.csswg.org/selectors-4/#selector) only matches a corresponding [pseudo-element](https://drafts.csswg.org/selectors-4/#pseudo-element) if its [<pt-name-selector>](https://drafts.csswg.org/css-view-transitions-1/#typedef-pt-name-selector) matches that pseudo-element’s [view transition name](https://drafts.csswg.org/css-view-transitions-1/#view-transition-name), i.e. if it is either [*](https://drafts.csswg.org/selectors-3/#x) or a matching [<custom-ident>](https://drafts.csswg.org/css-values-4/#identifier-value).

Specifically, this sentence is odd:
"These pseudo-elements take a [<pt-name-selector>](https://drafts.csswg.org/css-view-transitions-1/#typedef-pt-name-selector) as their argument, and their syntax follows the pattern:"

It is talking about named view transition pseudo-elements, which, everywhere else in this definition are a separate construct from their selectors.
So they shouldn't have any syntax and also not take any <pt-name-selector>s.

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


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

Received on Tuesday, 13 May 2025 17:47:38 UTC