@@ -2900,7 +2900,6 @@ interface CSSColorValue : CSSStyleValue {
2900
2900
<tr><td> "rgb"<td> {{CSSRGB}}
2901
2901
<tr><td> "hsl"<td> {{CSSHSL}}
2902
2902
<tr><td> "hwb"<td> {{CSSHWB}}
2903
- <tr><td> "gray"<td> {{CSSGray}}
2904
2903
<tr><td> "lch"<td> {{CSSLCH}}
2905
2904
<tr><td> "lab"<td> {{CSSLab}}
2906
2905
<tr><td> "device-cmyk"<td> {{CSSDeviceCMYK}}
@@ -2940,7 +2939,6 @@ interface CSSColorValue : CSSStyleValue {
2940
2939
<tr><td> "rgb"<td> {{CSSRGB}}
2941
2940
<tr><td> "hsl"<td> {{CSSHSL}}
2942
2941
<tr><td> "hwb"<td> {{CSSHWB}}
2943
- <tr><td> "gray"<td> {{CSSGray}}
2944
2942
<tr><td> "lch"<td> {{CSSLCH}}
2945
2943
<tr><td> "lab"<td> {{CSSLab}}
2946
2944
<tr><td> "device-cmyk"<td> {{CSSDeviceCMYK}}
@@ -3093,40 +3091,6 @@ The {{CSSHWB}} class represents the CSS ''hwb()'' function.
3093
3091
and set the corresponding internal slot to the result of that.
3094
3092
</div>
3095
3093
3096
- <xmp class=idl>
3097
- [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
3098
- interface CSSGray : CSSColorValue {
3099
- constructor(CSSNumberish gray, optional CSSNumberish alpha = 1);
3100
- attribute CSSNumberish gray;
3101
- attribute CSSNumberish alpha;
3102
- };
3103
- </xmp>
3104
-
3105
- The {{CSSGray}} class represents the CSS ''gray()'' function.
3106
-
3107
- <div algorithm="CSSGray()">
3108
- The <dfn constructor for=CSSGray>CSSGray(|l|, optional |alpha|)</dfn> constructor
3109
- must, when invoked,
3110
- perform the following steps:
3111
-
3112
- 1. Let |l| and |alpha|
3113
- be replaced by the result of [=rectifying a percentish value=] .
3114
- If |l| and |alpha| don't both [=CSSNumericValue/match=] "percent",
3115
- [=throw=] a {{TypeError}} .
3116
-
3117
- 3. Return a new {{CSSGray}}
3118
- with its {{CSSGray/l}} and {{CSSGray/alpha}} internal slots
3119
- set to |l|, and |alpha|.
3120
- </div>
3121
-
3122
- <div algorithm="CSSGray.l">
3123
- The <dfn attribute for=CSSGray>l</dfn>
3124
- and <dfn attribute for=CSSGray>alpha</dfn> attributes of a {{CSSGray}} value
3125
- must, on setting to a new value |val|,
3126
- [=rectify a percentish value=] from |val|
3127
- and set the corresponding internal slot to the result of that.
3128
- </div>
3129
-
3130
3094
<xmp class=idl>
3131
3095
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
3132
3096
interface CSSLCH : CSSColorValue {
0 commit comments