- From: Dan Burzo via GitHub <sysbot+gh@w3.org>
- Date: Tue, 02 Jan 2024 17:14:50 +0000
- To: public-css-archive@w3.org
danburzo has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-color-5] relative color syntax: numbers vs. percentages in `calc()` == With two implementations on stable channels (Safari 16.4+, Chrome 119+) for the relative color syntax, I’m trying to make sense of the incompatible results I’m seeing [on my test page](https://danburzo.ro/demos/color/relative-color-syntax.html), in order to contribute appropriate web platform tests: 1. The only version that works in Safari is: `rgb(from #ff6600 calc(100% - r) calc(100% - g) calc(100% - b))`. Should the mixing of `<percentage>` and `<number>` in `calc()` here still produce a valid color? 2. Am I right to understand that the `<number>` for `rgb()` channel keywords is in the range `[0,255]` and not `[0,1]` and that Chrome supporting `rgb(from #ff6600 calc(1 - r) calc(1 - g) calc(1 - b))` rather than `rgb(from #ff6600 calc(255 - r) calc(255 - g) calc(255 - b))` is incorrect? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9759 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 2 January 2024 17:14:52 UTC