RESOLVED FIXED308604
[css-cascade] Implement revert-rule CSS keyword
https://bugs.webkit.org/show_bug.cgi?id=308604
Summary [css-cascade] Implement revert-rule CSS keyword
Tim Nguyen (:ntim)
Reported 2026-02-24 19:17:06 PST
https://drafts.csswg.org/css-cascade-5/#revert-rule-keyword The revert-rule CSS-wide keyword rolls back the cascade similar to revert and revert-layer, except it works by style rule rather than cascade origin or cascade layer. If the cascaded value of a property is the revert-rule keyword, the cascaded value is rolled back such that the specified value is calculated as if the current style rule had not been present at all. The revert-rule keyword behaves like revert-layer in the animation origin.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-02-24 19:17:12 PST
Tim Nguyen (:ntim)
Comment 2 2026-02-24 19:29:50 PST
Tim Nguyen (:ntim)
Comment 3 2026-02-25 15:14:11 PST
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/58058
Antti Koivisto
Comment 4 2026-03-05 03:28:11 PST
EWS
Comment 5 2026-03-05 11:29:51 PST
Committed 308733@main (cdf824701b8c): <https://commits.webkit.org/308733@main> Reviewed commits have been landed. Closing PR #59973 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.