Re: [csswg-drafts] [css-values] Functional counterparts of other CSS-wide keywords (`revert-layer()`, `revert-rule()`) (#11773)

I agree with lifting the restriction of referencing the same (custom) property. If I'm understanding correctly, `revert-rule` in general is about escaping the entire set of declarations (surrounded by curly braces), and the new use here is explicitly a tool to avoid cycles. Lifting the restriction would avoid cycle by referencing the previous value of other variables which are also updated within the same rule. Without it, you just can't reference those other variables.

I see `revert-layer()` as equally awesome and I think it shouldn't have the same-property restriction either, for the same reasons.

-- 
GitHub Notification of comment by towerofnix
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11773#issuecomment-4071714656 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 17 March 2026 01:27:00 UTC