Re: [csswg-drafts] [css-values] attr() and part() / slotted() / element backed pseudo-elements behave inconsistently. (#12721)

I can't tell what this resolution means _exactly_ for all possible pseudo-elements, but if this requires us to track "how" a pseudo-element was matched (beyond which tree scope a rule came from), I'm very much against it.

> `:host::part(foo) vs. div[part=foo]` [behaving the same way]

I don't find that too confusing? You're getting `attr()`/sibling info according to what you're supposed to have access to, not according to how you're choosing to reach a certain element. That seems reasonable?

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


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

Received on Thursday, 12 February 2026 10:36:00 UTC