Re: [csswg-drafts] [css-color-4] L as `<percentage>` in `lab()` and `oklab()` (#6761)

The way to fix this on the CSS side is (and always had been) to *require* units for all components in all predefined color notations (e.g. `lch()`). Yes, this includes `deg` (or another angular unit) for hue and probably `%` for chroma and, of course, `%` for alpha/opacity. 

For the lower-level `color()` notation, on the other hand, CSS could accept whatever <!--crap--> is conventional outside CSS. 

-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6761#issuecomment-952384786 using your GitHub account


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

Received on Tuesday, 26 October 2021 22:45:27 UTC