- From: Chris Lilley via GitHub <sysbot+gh@w3.org>
- Date: Tue, 11 May 2021 15:34:50 +0000
- To: public-houdini-archive@w3.org
svgeesus has just created a new issue for https://github.com/w3c/css-houdini-drafts: == [css-typed-om] `toColor()` intentionally restricted to predefined colors? == In [4.6 CSSColorValue objects](https://drafts.css-houdini.org/css-typed-om/#colorvalue-objects), the `toColor(colorspace)` method states: > 2. If `colorspace`’s value is not one of the `predefined colorspaces`, throw a `SyntaxError`. However, in CSS Color 4, the [syntax of the `color()` function](https://www.w3.org/TR/css-color-4/#color-function) is: ```html <pre class='prod'> <dfn>color()</dfn> = color( [<<ident>> | <<dashed-ident>>] [ <<number-percentage>>+ ] [ / <<alpha-value>> ]? ) </pre> ``` while currently, `CSSColorValue` only handles the `<ident>` case and not the `<dashed-ident>` case. Is this an intentional restriction, or an oversight? If intentional, what is the rationale? Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/1030 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 11 May 2021 15:34:52 UTC