Re: [csswg-drafts] [css-values-5] Make specifying limits more convenient in random function (#13457)

Experience from a couple of days ago playing with Chromes recently flagged implementation:

Wrote `rotate: random(-15deg, -90deg);` and was confused about why I kept getting a computed value of `-15deg`. At first it just didn't occur to me that there would be a required order of minimum then maximum value. When I checked the spec and just saw `<calc-sum>` listed twice I wondered if this was just an issue with the new Chrome implementation. As pointed out above there really isn't a clear indication that there is a required min and max value ordering. 

The decision to choose the "minimum value" if the numbers are in the wrong order, on the surface, at least seems arbitrary. It's also not clear if by "minimum value" it means the smaller of the 2 values or the value in the minimum value position.

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


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

Received on Monday, 16 March 2026 11:37:03 UTC