Bug 308604
| Summary: | [css-cascade] Implement revert-rule CSS keyword | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Nguyen (:ntim) <ntim> |
| Component: | CSS | Assignee: | Antti Koivisto <koivisto> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | koivisto, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://github.com/web-platform-tests/wpt/pull/58058 | ||
Tim Nguyen (:ntim)
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/171132753>
Tim Nguyen (:ntim)
Pull request: https://github.com/WebKit/WebKit/pull/59390
Tim Nguyen (:ntim)
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/58058
Antti Koivisto
Pull request: https://github.com/WebKit/WebKit/pull/59973
EWS
Committed 308733@main (cdf824701b8c): <https://commits.webkit.org/308733@main>
Reviewed commits have been landed. Closing PR #59973 and removing active labels.