Re: [csswg-drafts] [css-nesting-1] [selectors-4] Figure out the specificity of nesting with pseudos and non-pseudos (#13108)

> There are also pseudo selectors (view-transition-classes etc) which add their own specificity on top.

They add their own specificity rules, but those only ever set the specificity outright, instead of adding to what was there before. Those pseudos either have the specificity of a type selector, or 0. Never the base specificity + something else.
See https://www.w3.org/TR/css-view-transitions-1/#named-view-transition-pseudo and https://www.w3.org/TR/css-view-transitions-2/#pseudo-element-class-additions

-- 
GitHub Notification of comment by Psychpsyo
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13108#issuecomment-3538655288 using your GitHub account


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

Received on Sunday, 16 November 2025 11:53:01 UTC