@@ -3006,11 +3006,11 @@ interface CSSLab : CSSColorValue {
30063006
30073007[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
30083008interface CSSColor : CSSColorValue {
3009- constructor(sequence<(DOMString or CSSNumberish)> variant);
3010- /* CSSColor(["foo", 0, 1, .5] , ["bar", "yellow"] , 1, fallbackColor) */
3011- /* or just make the alpha and fallback successive optional args? */
3009+ constructor(CSSKeywordish colorspace, sequence<CSSNumberish> channels, optional CSSNumberish alpha = 1);
3010+ attribute CSSKeywordish colorspace;
3011+ attribute CSSPercentishArray channels;
3012+ attribute CSSNumberish alpha;
30123013};
3013-
30143014</xmp>
30153015
30163016Issue: TODO add stringifiers
@@ -3193,7 +3193,7 @@ The {{CSSColor}} class represents the CSS ''color()'' function.
31933193 perform the following steps:
31943194
31953195 1. Let |colorspace| be replaced by the result of [=rectifying a keywordish value=] .
3196- Let |channels| be replaced by the result of [=rectifying a percentish value=] for each item in the list .
3196+ Let each item in |channels| be replaced by the result of [=rectifying a percentish value=] from the item .
31973197 Let |alpha| be replaced by the result of [=rectifying a percentish value=] .
31983198
31993199 2. If |alpha| and the items of |channels| don't all [=CSSNumericValue/match=] "percent",
@@ -3210,7 +3210,10 @@ The {{CSSColor}} class represents the CSS ''color()'' function.
32103210 [=rectify a keywordish value=] from |val|
32113211 and set the corresponding internal slot to the result of that.
32123212
3213- Issue: Phrase the per-item channels setting.
3213+ The <dfn attribute for=CSSColor>channels</dfn> attribute of a {{CSSColor}} value
3214+ must, on setting to a new value |val|,
3215+ [=rectify a percentish array=] from |val"
3216+ and set the corresponding internal slot to the result of that.
32143217
32153218 The <dfn attribute for=CSSColor>alpha</dfn> attribute of a {{CSSColor}} value
32163219 must, on setting to a new value |val|,
0 commit comments