- From: Chris Lilley via GitHub <sysbot+gh@w3.org>
- Date: Mon, 10 Apr 2023 15:58:06 +0000
- To: public-css-archive@w3.org
> Why can't we have it be a number or percentage depending on which one type checks? CSS used to have a `<number-or-percentage>` type but it no longer exists. @tabatkins said that [it can't](https://github.com/w3c/csswg-drafts/issues/7876#issuecomment-1282797648) and could explain better than I why that had to be removed. > For example, with `oklch` you'd have to do `calc(l + .1)` instead of `calc(l + 10)` for lch because the number range is [0, 1] instead of [0, 100]. For 10% lighter I would probably do `calc(l * 1.1)` in both cases. But I do see your point, and sorry for the breaking change. -- GitHub Notification of comment by svgeesus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7876#issuecomment-1501986896 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 10 April 2023 15:58:08 UTC