@@ -2874,6 +2874,8 @@ has the same behavior as in normal CSS.
2874
2874
-----------------------------------------------
2875
2875
2876
2876
{{CSSColorValue}} objects represent <<color>> values.
2877
+ It is an abstract superclass,
2878
+ with the subclasses representing individual CSS color functions.
2877
2879
2878
2880
<xmp class='idl'>
2879
2881
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
@@ -3013,6 +3015,8 @@ interface CSSColor : CSSColorValue {
3013
3015
3014
3016
Issue: TODO add stringifiers
3015
3017
3018
+ The {{CSSRGB}} class represents the CSS ''rgb()'' /''rgba()'' functions.
3019
+
3016
3020
<div algorithm="CSSRGB()">
3017
3021
The <dfn constructor for=CSSRGB>CSSRGB(|r|, |g|, |b|, optional |alpha|)</dfn> constructor
3018
3022
must, when invoked,
@@ -3041,6 +3045,8 @@ Issue: TODO add stringifiers
3041
3045
and set the corresponding internal slot to the result of that.
3042
3046
</div>
3043
3047
3048
+ The {{CSSHSL}} class represents the CSS ''hsl()'' /''hsla()'' functions.
3049
+
3044
3050
<div algorithm="CSSHSL()">
3045
3051
The <dfn constructor for=CSSHSL>CSSHSL(|h|, |s|, |l|, optional |alpha|)</dfn> constructor
3046
3052
must, when invoked,
@@ -3068,6 +3074,8 @@ Issue: TODO add stringifiers
3068
3074
and set the corresponding internal slot to the result of that.
3069
3075
</div>
3070
3076
3077
+ The {{CSSHWB}} class represents the CSS ''hwb()'' function.
3078
+
3071
3079
<div algorithm="CSSHWB()">
3072
3080
The <dfn constructor for=CSSHWB>CSSHWB(|h|, |w|, |b|, optional |alpha|)</dfn> constructor
3073
3081
must, when invoked,
@@ -3095,6 +3103,33 @@ Issue: TODO add stringifiers
3095
3103
and set the corresponding internal slot to the result of that.
3096
3104
</div>
3097
3105
3106
+ The {{CSSGray}} class represents the CSS ''gray()'' function.
3107
+
3108
+ <div algorithm="CSSGray()">
3109
+ The <dfn constructor for=CSSGray>CSSGray(|l|, optional |alpha|)</dfn> constructor
3110
+ must, when invoked,
3111
+ perform the following steps:
3112
+
3113
+ 1. Let |l| and |alpha|
3114
+ be replaced by the result of [=rectifying a percentish value=] .
3115
+ If |l| and |alpha| don't both [=CSSNumericValue/match=] "percent",
3116
+ [=throw=] a {{TypeError}} .
3117
+
3118
+ 3. Return a new {{CSSGray}}
3119
+ with its {{CSSGray/l}} and {{CSSGray/alpha}} internal slots
3120
+ set to |l|, and |alpha|.
3121
+ </div>
3122
+
3123
+ <div algorithm="CSSGray.l">
3124
+ The <dfn attribute for=CSSGray>l</dfn>
3125
+ and <dfn attribute for=CSSGray>alpha</dfn> attributes of a {{CSSGray}} value
3126
+ must, on setting to a new value |val|,
3127
+ [=rectify a percentish value=] from |val|
3128
+ and set the corresponding internal slot to the result of that.
3129
+ </div>
3130
+
3131
+ The {{CSSLCH}} class represents the CSS ''lch()'' function.
3132
+
3098
3133
<div algorithm="CSSLCH()">
3099
3134
The <dfn constructor for=CSSLCH>CSSLCH(|l|, |c|, |h|, optional |alpha|)</dfn> constructor
3100
3135
must, when invoked,
@@ -3122,6 +3157,8 @@ Issue: TODO add stringifiers
3122
3157
and set the corresponding internal slot to the result of that.
3123
3158
</div>
3124
3159
3160
+ The {{CSSLab}} class represents the CSS ''lab()'' function.
3161
+
3125
3162
<div algorithm="CSSLab()">
3126
3163
The <dfn constructor for=CSSLab>CSSLab(|l|, |a|, |b|, optional |alpha|)</dfn> constructor
3127
3164
must, when invoked,
@@ -3148,6 +3185,8 @@ Issue: TODO add stringifiers
3148
3185
and set the corresponding internal slot to the result of that.
3149
3186
</div>
3150
3187
3188
+ The {{CSSColor}} class represents the CSS ''color()'' function.
3189
+
3151
3190
<div algorithm="CSSColor()">
3152
3191
The <dfn constructor for=CSSColor>CSSColor(|colorspace|, |channels|, optional |alpha|)</dfn> constructor
3153
3192
must, when invoked,
0 commit comments