@@ -87,8 +87,6 @@ spec:css-speech-1; type:property;
8787 text:pause-before;
8888 text:speak;
8989 text:voice-family;
90- spec:css-syntax-3;
91- type:dfn; text:identifier
9290spec:css-tables-3; type:property;
9391 text:border-collapse;
9492 text:caption-side;
@@ -106,7 +104,9 @@ spec:css-ui-4;
106104spec:css-values-4;
107105 type:type; text:<position>
108106 type:value; text:in
109- type:dfn; text:relative length
107+ type:dfn;
108+ text:relative length
109+ text:identifier
110110spec:dom; type:interface;
111111 text:Document
112112 text:Element;
@@ -130,6 +130,7 @@ spec:svg2;
130130 text: stroke-miterlimit
131131 text: stroke-opacity
132132 text: stroke-width
133+ text: color-rendering
133134</pre>
134135
135136Introduction {#intro}
@@ -647,11 +648,11 @@ probably in an appendix.
647648 <dfn for=CSSStyleValue export lt="match a grammar | match the grammar">match a grammar</dfn>
648649 based on the following rules:
649650
650- * A {{CSSKeywordValue}} matches an <<identifier >> specified in a grammar
651+ * A {{CSSKeywordValue}} matches an <<ident >> specified in a grammar
651652 if its {{CSSKeywordValue/value}} internal slot
652653 matches the identifier.
653654
654- If case-folding rules are in effect normally for that <<identifier >>
655+ If case-folding rules are in effect normally for that <<ident >>
655656 (such as ''Auto'' matching the keyword ''auto'' specified in the grammar for 'width' ),
656657 they apply to this comparison as well.
657658 * A {{CSSTransformValue}} matches <<transform-list>> .
@@ -882,7 +883,7 @@ of the {{CSSUnparsedValue/[[tokens]]}} internal slot.
882883{{CSSKeywordValue}} objects {#keywordvalue-objects}
883884---------------------------------------------------
884885
885- {{CSSKeywordValue}} objects represent CSS keywords and other [=identifiers =] .
886+ {{CSSKeywordValue}} objects represent CSS keywords and other [=idents =] .
886887
887888<pre class='idl'>
888889[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
@@ -2795,8 +2796,8 @@ This list is the object's [=values to iterate over=].
27952796 then set |length| to the result's value.
27962797
27972798 2. If |length| does not represent a value
2798- that is [=ASCII case-insensitive=] match
2799- for the identifier ''perspective()/none'' ,
2799+ that is an [=ASCII case-insensitive=] match
2800+ for the keyword ''perspective()/none'' ,
28002801 [=throw=] a {{TypeError}} .
28012802
28022803 3. Return a new {{CSSPerspective}} object
@@ -2956,40 +2957,40 @@ interface CSSColorValue : CSSStyleValue {
29562957 <tr><td> "hwb"<td> {{CSSHWB}}
29572958 <tr><td> "lch"<td> {{CSSLCH}}
29582959 <tr><td> "lab"<td> {{CSSLab}}
2959- <td ><td> "oklab"<td> {{CSSOKLab}}
2960- <td ><td> "oklch"<td> {{CSSOKLCH}}
2960+ <tr ><td> "oklab"<td> {{CSSOKLab}}
2961+ <tr ><td> "oklch"<td> {{CSSOKLCH}}
29612962 </table>
29622963
29632964 {{CSSColor}} defines its behavior for this attribute further down.
29642965</div>
29652966
29662967<div algorithm="CSSColorValue.to()">
2967- The <dfn method for=CSSColorValue>to(colorSpace)</dfn> method
2968+ The <dfn method for=CSSColorValue>to(| colorSpace| )</dfn> method
29682969 of {{CSSColorValue}} objects must,
29692970 when called on |this|:
29702971
2971- 1. [=Rectify a keywordish value=] from |colorspace |,
2972- then set |colorspace | to the result's value.
2972+ 1. [=Rectify a keywordish value=] from |colorSpace |,
2973+ then set |colorSpace | to the result's value.
29732974
2974- 2. If |colorspace | is not in the table below,
2975+ 2. If |colorSpace | is not in the table below,
29752976 [=throw=] a "{{SyntaxError}} " {{DOMException}} .
29762977
29772978 3. If |this| is a {{CSSColor}} value,
2978- and its {{CSSColor/colorSpace}} attribute is not a [[css-color-4#predefined|predefined colorspace ]] ,
2979+ and its {{CSSColor/colorSpace}} attribute is not a [[css-color-4#predefined|predefined color space ]] ,
29792980 [=throw=] an "{{InvalidModificationError}} " {{DOMException}} .
29802981
2981- 2. Convert |this| into the color space indicated by |colorspace |,
2982+ 2. Convert |this| into the color space indicated by |colorSpace |,
29822983 and return a new object of the appropriate {{CSSColorValue}} subclass
29832984 with its internal slots set appropriately to represent the color.
29842985
2985- The valid |colorspace | values,
2986+ The valid |colorSpace | values,
29862987 and the classes they cause this method to return,
29872988 are indicated by the following table.
29882989 Each of these values is [=ASCII case-insensitive=] .
29892990
29902991 <table class=data>
29912992 <thead>
2992- <tr><th> |colorspace |<th> {{CSSColorValue}} subclass
2993+ <tr><th> |colorSpace |<th> {{CSSColorValue}} subclass
29932994 </thead>
29942995 <tr><td> "rgb"<td> {{CSSRGB}}
29952996 <tr><td> "hsl"<td> {{CSSHSL}}
@@ -2998,10 +2999,10 @@ interface CSSColorValue : CSSStyleValue {
29982999 <tr><td> "lab"<td> {{CSSLab}}
29993000 <tr><td> "oklab"<td> {{CSSOKLab}}
30003001 <tr><td> "oklch"<td> {{CSSOKLCH}}
3001- <tr><td> any [[css-color-4#predefined|predefined colorspace ]] <td> {{CSSColor}}
3002+ <tr><td> any [[css-color-4#predefined|predefined color space ]] <td> {{CSSColor}}
30023003 </table>
30033004
3004- Issue: Currently, only predefined colorspaces can be converted to or from;
3005+ Issue: Currently, only predefined color spaces can be converted to or from;
30053006 ''@color-profile'' -defined ones can't be,
30063007 because it's not clear what context we should be looking in for the ''@color-profile'' ,
30073008 when shadow DOM might be involved.
@@ -3480,7 +3481,7 @@ The {{CSSColor}} class represents the CSS ''color()'' function.
34803481 Let |alpha| be replaced by the result of [=rectifying a CSSColorPercent=] from it.
34813482
34823483 2. Return a new {{CSSColor}}
3483- with its {{CSSColor/colorspace }} , {{CSSColor/channels}} , and {{CSSColor/alpha}} internal slots
3484+ with its {{CSSColor/colorSpace }} , {{CSSColor/channels}} , and {{CSSColor/alpha}} internal slots
34843485 set to |colorSpace|, |channels|, and |alpha|.
34853486</div>
34863487
@@ -5523,28 +5524,18 @@ or generic {{CSSStyleValue}}s (otherwise).
55235524 set to the [=reification=]
55245525 of its lightness, a, b, and alpha components, respectively.
55255526
5526- 6. If |val| is a ''device-cmyk()'' function,
5527- then return a new {{CSSDeviceCMYK}} object
5528- with its {{CSSDeviceCMYK/c}} ,
5529- {{CSSDeviceCMYK/m}} ,
5530- {{CSSDeviceCMYK/y}} ,
5531- {{CSSDeviceCMYK/k}} ,
5532- and {{CSSDeviceCMYK/alpha}} internal slots
5533- set to the [=reification=]
5534- of its cyan, magenta, yellow, key, and alpha components, respectively.
5535-
5536- 7. If |val| is a ''color()'' function,
5527+ 6. If |val| is a ''color()'' function,
55375528 then return a new {{CSSColor}} object
55385529 with its {{CSSColor/colorSpace}} internal slot
55395530 set to the result of [=reifying an identifier=]
55405531 from |val|'s color space,
5541- its {{CSSColor/channels}} internal slot
5542- set to the result of [=reifying a percentish array =]
5543- from |val|'s list of non-alpha components,
5532+ its {{CSSColor/channels}} internal slot's [=observable array attribute/backing list=]
5533+ set to the result of [=reifying=]
5534+ |val|'s list of non-alpha components,
55445535 and {{CSSColor/alpha}} internal slot
55455536 set to the result of [=reifying=] |val|'s alpha component.
55465537
5547- 8 . If |val| is a <<named-color>> or the keyword ''transparent'' ,
5538+ 7 . If |val| is a <<named-color>> or the keyword ''transparent'' ,
55485539 then return a new {{CSSRGB}} object
55495540 with its {{CSSRGB/r}} ,
55505541 {{CSSRGB/g}} ,
@@ -5553,7 +5544,7 @@ or generic {{CSSStyleValue}}s (otherwise).
55535544 set to the [=reification=]
55545545 of its red, green, blue, and alpha components, respectively.
55555546
5556- 9 . If |val| is any other color keyword,
5547+ 8 . If |val| is any other color keyword,
55575548 return the result of [=reifying an identifier=] from |val|.
55585549</div>
55595550
0 commit comments