Skip to content

[css-pseudo] Extend CSSPseudoElement to all standardized non-element-backed tree-abiding pseudo-elements#13940

Merged
tabatkins merged 2 commits into
w3c:mainfrom
danielsakhapov:add_more_type_for_csspseudoelement
May 21, 2026
Merged

[css-pseudo] Extend CSSPseudoElement to all standardized non-element-backed tree-abiding pseudo-elements#13940
tabatkins merged 2 commits into
w3c:mainfrom
danielsakhapov:add_more_type_for_csspseudoelement

Conversation

@danielsakhapov

Copy link
Copy Markdown
Contributor

From #13804

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Extends the CSSPseudoElement interface's allowed type values from the previous fixed list (::before, ::after, ::marker) to all standardized tree-abiding pseudo-elements that are not element-backed, adding ::backdrop and ::view-transition as illustrative examples, and updates the Element.pseudo() algorithm to return null when the parsed selector refers to an element-backed pseudo-element.

Changes:

  • Reworded the description of CSSPseudoElement.type to reference the [=tree-abiding=] / [=element-backed=] terminology and converted the value list into examples.
  • Added ::backdrop and ::view-transition entries to the example <dl>.
  • Added a new step in the pseudo() algorithm that returns null for element-backed pseudo-elements.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread css-pseudo-4/Overview.bs Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@tabatkins tabatkins merged commit 75c4d3e into w3c:main May 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants