[csswg-drafts] [css-view-transitions] [cssom] Inheritance of non-existing pseudo-elements. (#13904)

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

== [css-view-transitions] [cssom] Inheritance of non-existing pseudo-elements. ==
https://github.com/web-platform-tests/wpt/pull/58814 introduces a test that passes in chrome by minting the inheritance tree, see https://github.com/web-platform-tests/wpt/pull/58814#issuecomment-4263707301

It basically asserts that non-existing view-transition pseudo-elements should inherit from non-existing ancestor pseudo-elements rather than the originating element.

While this _can_ be implemented for _this specific view transitions case_, it's a really odd special-case (which I think was wrongly implemented in chrome, see the comment above), and is inconsistent with all other pseudo-elements.

I think it's more consistent to say that when CSSOM needs to resolve a style of a non-existent pseudo-element, you just match the rules and inherit from the originating element. That's what every other pseudo-element does.

I think there's no need to change the spec necessarily (but might be worth clarifying / being explicit).

cc @lilles @kevers-google 

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


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

Received on Saturday, 9 May 2026 09:14:24 UTC