W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2021

[csswg-drafts] [css-color-5] Can "relative color syntax" channel constants be used for a channel other than the one it represents? (#6043)

From: weinig via GitHub <sysbot+gh@w3.org>
Date: Sat, 27 Feb 2021 18:36:50 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-817990778-1614451009-sysbot+gh@w3.org>
weinig has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color-5] Can "relative color syntax" channel constants be used for a channel other than the one it represents? ==
In CSS Color 5's Relative color syntax, https://drafts.csswg.org/css-color-5/#relative-colors, the spec is not clear on whether it is valid for a channel constant to be used for channel other than one it represents. For example, is the following valid:

```css
    color: rgb(from teal g b r);
```

I could some value in this ability to permute things, but not a ton. In my investigative implementation in WebKit, I have disallowed this pending more clarity. 

(also, I wrote a bunch of tests for this feature, https://trac.webkit.org/browser/webkit/trunk/LayoutTests/fast/css/parsing-color-mix.html?rev=273244,  but I am not clear if they make sense for WPT at the moment, given the early stage of the spec, please let me know if would be useful to make a PR to add them and I'd be happy to).

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6043 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 27 February 2021 18:36:52 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:40 UTC