- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Wed, 22 Jun 2022 18:52:40 +0000
- To: public-css-archive@w3.org
Below are all the existing ranges: | Production | Ranges | --------------------- | ---------- | `<length-percentage>` | `[0,∞]` | `<length>` | `[0,∞]` | `<number>` | `[0,∞]`, `[1,∞]`, `[0,1]`, `[1,1000]` | `<integer>` | `[0,∞]`, `[1,∞]`, `[0,10]` | `<percentage>` | `[0,∞]`, `[0,Infinity]`, `[0,100]` It seems clearer to not omit the canonical unit. Unitless `0` for `<length>` and `<angle>` is more concise. It is forbidden in math functions but there are currently none that have a range constraint. `∞px` or `∞%` would be weird. `<length-percentage [0,∞]>` looks problematic to me. CSS authors might think that unitless `0` for `<percentage>` is allowed. The only alternative I see would be to define that the range applies to the numeric part of the component value, canonicalized in the case of a dimension. I think that `Infinity` could be normalized to `∞` for consistency and conciseness. -- GitHub Notification of comment by cdoublev Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7400#issuecomment-1163488940 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 22 June 2022 18:52:42 UTC