Skip to content

Commit 4898141

Browse files
committed
[css-typed-om] Remove CSSGray and associated spec text, since Color 4 *dropped* gray() some time ago. Fixes w3c#1027.
1 parent 5a1663d commit 4898141

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

css-typed-om/Overview.bs

-36
Original file line numberDiff line numberDiff line change
@@ -2900,7 +2900,6 @@ interface CSSColorValue : CSSStyleValue {
29002900
<tr><td>"rgb"<td>{{CSSRGB}}
29012901
<tr><td>"hsl"<td>{{CSSHSL}}
29022902
<tr><td>"hwb"<td>{{CSSHWB}}
2903-
<tr><td>"gray"<td>{{CSSGray}}
29042903
<tr><td>"lch"<td>{{CSSLCH}}
29052904
<tr><td>"lab"<td>{{CSSLab}}
29062905
<tr><td>"device-cmyk"<td>{{CSSDeviceCMYK}}
@@ -2940,7 +2939,6 @@ interface CSSColorValue : CSSStyleValue {
29402939
<tr><td>"rgb"<td>{{CSSRGB}}
29412940
<tr><td>"hsl"<td>{{CSSHSL}}
29422941
<tr><td>"hwb"<td>{{CSSHWB}}
2943-
<tr><td>"gray"<td>{{CSSGray}}
29442942
<tr><td>"lch"<td>{{CSSLCH}}
29452943
<tr><td>"lab"<td>{{CSSLab}}
29462944
<tr><td>"device-cmyk"<td>{{CSSDeviceCMYK}}
@@ -3093,40 +3091,6 @@ The {{CSSHWB}} class represents the CSS ''hwb()'' function.
30933091
and set the corresponding internal slot to the result of that.
30943092
</div>
30953093

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-
31303094
<xmp class=idl>
31313095
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
31323096
interface CSSLCH : CSSColorValue {

0 commit comments

Comments
 (0)