[csswg-drafts] [css-values-5] Range checking in `media-progress()`/`container-progress()` start/end values? (#10802)

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

== [css-values-5] Range checking in `media-progress()`/`container-progress()` start/end values? ==
https://drafts.csswg.org/css-values-5/#media-progress-func

  > The specified media query must be a valid “range” type query, and its specified progress start value and progress end value must be valid values for the specified media query, or else the function is invalid.

Based on the above requirement:

  - `media-progress(aspect-ratio from -1 to 1)` is invalid because the start value *is* negative
  - `media-progress(aspect-ratio from 1em / -1px to 1)` is valid because the start value *may be* positive or negative

In both examples, the start value matches `<calc-sum>`, which is a *calculation*. [Range checking](https://drafts.csswg.org/css-values-4/#calc-range) must be skipped at parse time, but only in a *math function*.

This seems unfortunate/inconsistent. I suggest:

  > [...], and the type of its specified progress start value and progress end value must [match](https://drafts.css-houdini.org/css-typed-om-1/#cssnumericvalue-match) a CSS type accepted by the media query.

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


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

Received on Thursday, 29 August 2024 13:30:17 UTC