Skip to content

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

@emilio

Description

@emilio

web-platform-tests/wpt#58814 introduces a test that passes in chrome by minting the inheritance tree, see web-platform-tests/wpt#58814 (comment)

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions