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

For `::slotted([foo]) { width: attr(foo, px) }`, I would be surprised if the `attr()` looked up the originating element.

I can see the leakage issue with `::part()`.

When the spec reads "if applied to a pseudo-element", does that mean that it depends on the selector being used, not what the actual backing is?


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


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

Received on Wednesday, 3 September 2025 11:15:50 UTC