@@ -2874,6 +2874,8 @@ has the same behavior as in normal CSS.
2874
2874
-----------------------------------------------
2875
2875
2876
2876
{{CSSColorValue}} objects represent <> values.
2877
+ It is an abstract superclass,
2878
+ with the subclasses representing individual CSS color functions.
2877
2879
2878
2880
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
3017
3021
The CSSRGB(|r|, |g|, |b|, optional |alpha|) 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
3043
3047
3048
+ The {{CSSHSL}} class represents the CSS ''hsl()'' /''hsla()'' functions.
3049
+
3044
3050
3045
3051
The CSSHSL(|h|, |s|, |l|, optional |alpha|) 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
3070
3076
3077
+ The {{CSSHWB}} class represents the CSS ''hwb()'' function.
3078
+
3071
3079
3072
3080
The CSSHWB(|h|, |w|, |b|, optional |alpha|) 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
3097
3105
3106
+ The {{CSSGray}} class represents the CSS ''gray()'' function.
3107
+
3108
+
3109
+ The CSSGray(|l|, optional |alpha|) 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
+
3122
+
3123
+
3124
+ The l
3125
+ and alpha 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
+
3130
+
3131
+ The {{CSSLCH}} class represents the CSS ''lch()'' function.
3132
+
3098
3133
3099
3134
The CSSLCH(|l|, |c|, |h|, optional |alpha|) 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
3124
3159
3160
+ The {{CSSLab}} class represents the CSS ''lab()'' function.
3161
+
3125
3162
3126
3163
The CSSLab(|l|, |a|, |b|, optional |alpha|) 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
3150
3187
3188
+ The {{CSSColor}} class represents the CSS ''color()'' function.
3189
+
3151
3190
3152
3191
The CSSColor(|colorspace|, |channels|, optional |alpha|) constructor
3153
3192
must, when invoked,
0 commit comments