Skip to content

Commit 4eb3a00

Browse files
committed
more interface sketching
1 parent d2590f5 commit 4eb3a00

2 files changed

Lines changed: 31 additions & 15 deletions

File tree

cssom/Overview.html

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
<div class=head>
2929
<h1 id=cssom>CSSOM</h1>
3030

31-
<h2 class="no-num no-toc" id="">Editor's Draft 30 August 2010</h2>
31+
<h2 class="no-num no-toc" id="">Editor's Draft 31 August 2010</h2>
3232

3333
<dl>
3434
<dt>This Version:
3535

3636
<dd><a
37-
href="http://www.w3.org/TR/2010/ED-cssom-20100830/">http://www.w3.org/TR/2010/ED-cssom-20100830/</a>
37+
href="http://www.w3.org/TR/2010/ED-cssom-20100831/">http://www.w3.org/TR/2010/ED-cssom-20100831/</a>
3838

3939
<dt>Latest Version:
4040

@@ -3901,14 +3901,23 @@ <h4 id=the-csscomponentvalue-interface><span class=secno>5.6.6. </span>The
39013901
attribute any <span title=dom-CSSComponentValue-value>value</span>;
39023902
};</pre>
39033903

3904-
<p class=XXX>type returns "string", "ident", "color", "em", "ex", "px",
3905-
"url".
3904+
<p class=XXX>type returns "string", "keyword", "identifier", "color", "em",
3905+
"ex", "px", "url".
39063906

3907-
<p class=note>&lt;string> and &lt;ident> component values do not have their
3908-
own interface. They are identified by the <span
3909-
title=dom-CSSComponentValue-type>type</span> attribute and the <span
3910-
title=dom-CSSComponentValue-value>value</span> attribute returns a
3911-
DOMString representing either one of them.
3907+
<pre
3908+
class=idl>[NoInterfaceObject] interface <dfn id=cssstringcomponentvalue>CSSStringComponentValue</dfn> {
3909+
attribute DOMString <span title=dom-CSSStringComponentValue-string>string</span>;
3910+
};</pre>
3911+
3912+
<pre
3913+
class=idl>[NoInterfaceObject] interface <dfn id=csskeywordcomponentvalue>CSSKeywordComponentValue</dfn> {
3914+
attribute DOMString <span title=dom-CSSStringComponentValue-keyword>keyword</span>;
3915+
};</pre>
3916+
3917+
<pre
3918+
class=idl>[NoInterfaceObject] interface <dfn id=cssidentifiercomponentvalue>CSSIdentifierComponentValue</dfn> {
3919+
attribute DOMString <span title=dom-CSSStringComponentValue-identifier>identifier</span>;
3920+
};</pre>
39123921

39133922
<h4 id=the-csscolorcomponentvalue-interface><span class=secno>5.6.7.
39143923
</span>The <code title="">CSSColorComponentValue</code> Interface</h4>

cssom/Overview.src.html

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,13 +2458,20 @@ <h4>The <code title="">CSSComponentValue</code> Interface</h4>
24582458
attribute any <span title="dom-CSSComponentValue-value">value</span>;
24592459
};</pre>
24602460

2461-
<p class="XXX">type returns "string", "ident", "color", "em", "ex", "px", "url".</p>
2461+
<p class="XXX">type returns "string", "keyword", "identifier", "color", "em", "ex", "px", "url".</p>
24622462

2463-
<p class="note">&lt;string> and &lt;ident> component values do not have
2464-
their own interface. They are identified by the
2465-
<span title="dom-CSSComponentValue-type">type</span> attribute and the
2466-
<span title="dom-CSSComponentValue-value">value</span> attribute returns a
2467-
DOMString representing either one of them.</p>
2463+
2464+
<pre class="idl">[NoInterfaceObject] interface <dfn>CSSStringComponentValue</dfn> {
2465+
attribute DOMString <span title="dom-CSSStringComponentValue-string">string</span>;
2466+
};</pre>
2467+
2468+
<pre class="idl">[NoInterfaceObject] interface <dfn>CSSKeywordComponentValue</dfn> {
2469+
attribute DOMString <span title="dom-CSSStringComponentValue-keyword">keyword</span>;
2470+
};</pre>
2471+
2472+
<pre class="idl">[NoInterfaceObject] interface <dfn>CSSIdentifierComponentValue</dfn> {
2473+
attribute DOMString <span title="dom-CSSStringComponentValue-identifier">identifier</span>;
2474+
};</pre>
24682475

24692476

24702477
<h4>The <code title="">CSSColorComponentValue</code> Interface</h4>

0 commit comments

Comments
 (0)