Skip to content

[css-cascade-5] revert-layer in element-attached styles #10934

@bramus

Description

@bramus

As per https://drafts.csswg.org/css-cascade-5/#revert-layer, revert-layer in important element-attached styles should revert back to the author origin:

For revert-layer in important element-attached styles, however, it only reverts the element-attached styles and the intervening animation origin, and not any of the intervening author-origin important rules.

https://wpt.live/css/css-cascade/revert-layer-009.html however seems to imply this is also the case for regular element-attached styles, with all vendors agreeing on this behavior.

Suggestion to update the spec to the following, dropping the word “important”:

For revert-layer in element-attached styles, however, it only reverts the element-attached styles and the intervening animation origin, and not any of the intervening author-origin important rules.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions