[csswg-drafts] [css-values][css-color]

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

== [css-values][css-color] ==
(found by @TalbotG)

[css-values-3 (and 4)](https://www.w3.org/TR/css-values-3/#numeric-types) say that
> Properties may restrict numeric values to some range. If the value is outside the allowed range, the declaration is invalid and must be ignored.

However, there is at least one exception: the [`rgb()`](https://drafts.csswg.org/css-color-3/#annotation_rgb-color) function, which says:
> Values outside the device gamut should be clipped or mapped into the gamut when the gamut is known

and gives examples of values below 0 or above 255.

So, since there are some cases of properties doing restriction on the range other than at parsing time, we should probably change the sentence in css-values to something like this:

> Properties may restrict numeric values to some range. Unless specified otherwise, if the value is outside the allowed range, the declaration is invalid and must be ignored.

This makes it clear which requirement takes precedence instead of just having a contradiction.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3270 using your GitHub account

Received on Wednesday, 31 October 2018 20:31:13 UTC