#1193: Other Spec Review: The revert-rule keyword

Visit on Github

Opened Feb 12, 2026

Specification

https://drafts.csswg.org/css-cascade-5/#revert-rule-keyword

Explainer

https://github.com/w3c/csswg-drafts/blob/main/css-cascade-5/revert-rule-explainer.md

Links

The specification

Where and by whom is the work is being done?

Feedback so far

  • Multi-stakeholder feedback:
    • Chromium comments: N/A
    • Mozilla comments: TODO (Not filed yet.)
    • WebKit comments: TODO (Not filed yet.)
  • Major unresolved issues with or opposition to this specification: N/A
  • Status/issue trackers for implementations:

You should also know that...

No response

<!-- Content below this is maintained by @w3c-tag-bot -->

Track conversations at https://tag-github-bot.w3.org/gh/w3ctag/design-reviews/1193

Discussions

Log in to see TAG-private discussions.

Discussed Mar 16, 2026 (See Github)

Jeffrey: I've left a private comment that we should probably decline this as a detail the CSS WG does not need to check with us on. I also filed a bug (https://github.com/w3c/csswg-drafts/issues/13510) that I read its spec and didn't see something I was looking for, but that wasn't a TAG comment. But I want to check all that with Xiaocheng. Anyone else have opinions? ...

Discussed Mar 30, 2026 (See Github)

Xiaochengh: Minor comment regarding the explainer - they don't have an alternatives considered section. They have a filter extension section that is a mix of alternatives and the actual filter extentions. The proposal looks fine overall except a concern about implementation complexity. With revert, we need to maintain every rule from each origin, and then each layer. We can't drop anything.

Jeffrey: That sounds like a good thing to flag.

Xiaochengh: It does sound like someone has implemented it, though, so I'm not sure how they did it.

Jeffrey: They have, but they haven't filed any positions yet.

Xiaochengh: It's already in the CSS 5, but those editors may add things before they are implementable.

Brian: These are from whether its implementable or not.

Jeffrey: It's from the Chrome team, but the other engines may have different architectures.

Dan: The other engines have file positions, just haven't shared with us.

Jeffrey: So it may not be worth us asking again.

Xiaochengh: If others are not concerned, then we can resolve and say it's good. Will send that comment.

Brian: You can say that broadly speaking it seems ok, but of course browser architectures will vary. So, subject to reality, there may be other constraints that make this more difficult/costly to do in some engines than others.

Jeffrey: And your comment that they're missing alternatives is worth keeping.

Comment by @xiaochengh Apr 1, 2026 (See Github)

Hi @andruud, the TAG discussed this at a Breakout today and are generally happy with it.

There's also a comment regarding the explainer that there is no "Alternatives Considered" section, although the "Future Extensions" section somehow serves the purpose.