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

tcaptan-cr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-values-4] Specify argument range for resolution ==
Currently the [resolution-value](https://www.w3.org/TR/css-values-4/#resolution-value) is defined as:

> The < resolution > unit represents the size of a single "dot" in a graphical representation by indicating how many of these dots fit in a CSS in, cm, or px.

However, no argument range is currently specified for the resolution unit, which would imply that zero and negative resolution values are valid.

Given the resolution is a ratio of physical "dots" to CSS px, in or cm, non-positive values do not make sense.

After discussing this issue with @emilio  we thought it would be good if it would be well defined in the [spec](https://www.w3.org/TR/css-values-4/#resolution-value) as [1, ∞].

[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/resolution#syntax) does currently mention a restriction to "strictly positive" that is not in the spec:
> The < resolution > data type consists of a strictly positive < number > followed by one of the units listed below.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8532 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 21:53:37 UTC