Closed
Description
In 4.6 CSSColorValue objects, the toColor(colorspace)
method states:
- If
colorspace
’s value is not one of thepredefined colorspaces
, throw aSyntaxError
.
However, in CSS Color 4, the syntax of the color()
function is:
<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?