Re: [csswg-drafts] [css-values-5] What order to use for the "index of usage" for the default random() keys? (#13337)

> That said, this example makes me wonder if we should add pseudo-classes (or no pseudo-class for the standard case) to the tuple used for auto, since at first blush, I would not have expected the two styles in the example to share at all.

Right, it's accidental sharing, but it goes far beyond pseudo-classes. Like, if the two style rules were differentiated by a class that you toggled on and off, that's the exact same issue. Using `:hover` in the example just means it's easy to drop that into a testcase and try it yourself.

In general, I don't want `random()` to be the first value that changes behavior depending on how you organize your style rules or write your selectors.

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


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

Received on Friday, 27 March 2026 20:46:55 UTC