Re: [csswg-drafts] [css-values-5] How should random() handle extremely large ranges / extremely tiny steps? (#11634)

Okay, gave it a behavior for if the span is infinite (becomes NaN, same as if either of the range endpoints were infinite). I don't see a particular reason to try and be smarter about this.

I *had* a definition for a 0 step (it technically falls out of the definition already) but on review that behavior sucked; it wasn't the limit behavior as the step decreased to 0. So I ripped that out and defined instead that 0/negative/positive-but-sufficiently-small steps are just cause the step to be ignored, so it can generate any value in the range.

(Negative *could* be invalid, but I'm treating it like I defined the range to be [0, inf], which causes a clamp if the value is out of range.)

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


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

Received on Friday, 14 February 2025 22:37:17 UTC