Re: [csswg-drafts] [css-color-5] Invalid value definition of `<rgb()>` (#7363)

> That would mean things like rgb(255 40% 100%) are valid. Do we want that?

Tools like VSCode actually already support this by accident.
These support percentage values but don't check that all values use the same unit.

<img width="216" alt="Screenshot 2022-06-16 at 11 33 48" src="https://user-images.githubusercontent.com/11521496/174040747-df5f8402-6ff4-4ef9-820c-0c3ba2802a1e.png">

- some color functions already have mixed units and `var()` `calc()`
- `var()` and `calc()` can obfuscate units

These things considered I think it will help stylesheet authors if mixed units are just supported.



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


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

Received on Thursday, 16 June 2022 09:37:02 UTC