Skip to content

Commit 9df4612

Browse files
committed
[css-color] Bikeshed fixup.
1 parent c0f6129 commit 9df4612

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

css-color/Overview.bs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3733,15 +3733,13 @@ The CSSColor Object</h3>
37333733
Note: CSSColor is not designed to be constructable;
37343734
see the note at the top of this section.
37353735

3736-
<dt><dfn method lt="toRGB()">asRGB</dfn>()
3736+
<dt><dfn method>toRGB()</dfn>
37373737
<dd>
37383738
Throw an XXXError.
37393739

37403740
Note: All {{CSSColor}} subclasses have to implement this method themselves.
37413741

3742-
<dt><dfn method lt="parse()">parse</dfn>(
3743-
DOMString <dfn argument for="CSSColor/parse()">css</dfn>,
3744-
Element <dfn argument for="CSSColor/parse()">el</dfn>)
3742+
<dt><dfn method lt="parse(css, el)|parse(css)">parse(DOMString css, Element el)</dfn>
37453743
<dd>
37463744

37473745
Issue: Should parse the string,
@@ -3753,7 +3751,7 @@ The CSSColor Object</h3>
37533751
Throws if it can't parse a color out of the string,
37543752
or if you give it "currentcolor" but no element to resolve against.
37553753

3756-
<dt><dfn method lt="toString()">toString</dfn>(optional {{ColorStringifierType}} <dfn argument for="CSSColor/toString()">type</dfn>, any... args)
3754+
<dt><dfn method lt="toString(type, args)|toString(type)|toString()">toString(optional {{ColorStringifierType}} type, any... args)</dfn>
37573755
<dd>
37583756
Defined as follows in ECMAScript:
37593757

@@ -3782,7 +3780,7 @@ The CSSColor Object</h3>
37823780
}
37833781
</pre>
37843782

3785-
<dt><dfn method lt="forward()">forward</dfn>(<dfn argument for="CSSColor/forward()">methodName</dfn>)
3783+
<dt><dfn method lt="forward(methodName)">forward(DOMString methodName)</dfn>
37863784
<dd>
37873785
This function automates "forwarding" methods to a canonical definition in RGBColor,
37883786
so that authors can add new methods to color objects
@@ -3811,7 +3809,7 @@ The CSSColor Object</h3>
38113809
}
38123810
</pre>
38133811

3814-
<dt><dfn method lt="forwardToSameClass()">forwardToSameClass</dfn>(<dfn argument for="CSSColor/forwardToSameClass()">methodName</dfn>)
3812+
<dt><dfn method lt="forwardToSameClass(methodName)">forwardToSameClass(DOMString methodName)</dfn>
38153813
<dd>
38163814
Similar to the {{forward()}} method,
38173815
but used when the method returns a color object,

0 commit comments

Comments
 (0)