Re: [csswg-drafts] [css-values-4] Specify argument range for resolution (#8532)

There's nothing wrong with a resolution between 1 and 0, and in general CSS tries to avoid open ranges (see [the wiki](https://wiki.csswg.org/spec/limited-ranges)) so "strictly positive" should be avoided if possible. In general, a zero resolution isn't problematic anyway; it's a degenerate resolution, sure, but just as meaningful in practice as any extremely small resolution value.

However, negative resolutions are indeed nonsensical. I think it's reasonable to add a range into V&U; this'll make negative values invalid by default, and clamp them to 0 if put in a math function.

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


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

Received on Monday, 6 March 2023 22:37:37 UTC