[csswg-drafts] [css-cascade-5] Clarify possible loop in revert-rule (#13916)

sesse has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-cascade-5] Clarify possible loop in revert-rule ==
Consider the following user (or UA) stylesheet:

```css
div { color: revert-rule !important; }
```

And the following author stylesheet:

```css
div { color: revert; }
```

The `revert-rule` declaration will win, fall back to the other rule, and then `revert` will presumably go searching for rules in the user origin, and then… infinite loop?

It is possible to read the spec as if it the `revert-rule` is permanently ignored (so ignored when searching for what to revert to), but it's not entirely clear. Another option is to change the spec for `revert` so that it explicitly only can find weaker rules (i.e., never go forward in the cascade), which was the de-facto case anyway before `revert-rule` entered.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13916 using your GitHub account


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

Received on Tuesday, 12 May 2026 08:13:27 UTC