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

Not technically - other usages gain ranges from the property, not the function.

That is, `width` has `<length-percentage [0, ∞]>` in its grammar, so a calc() must *resolve* to a non-negative length, but within the calc() itself negative lengths are fine; it's okay to say `width: calc(-1 * 10px)` to get a 10px length.

On the other hand, the way I specified this, *all* `<resolution>` productions implicitly have a non-negative constraint, which includes the ones allowed in math functions.

Now, this isn't a necessity. It was the easiest way to specify the resolution, but I could explicitly carve out an exception for math functions, I suppose?

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


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

Received on Monday, 17 April 2023 22:58:43 UTC