Skip to content

Commit 3f5ff0d

Browse files
committed
rename some interfaces
1 parent fdc1ed4 commit 3f5ff0d

2 files changed

Lines changed: 91 additions & 57 deletions

File tree

cssom/Overview.html

Lines changed: 57 additions & 34 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 24 March 2010</h2>
31+
<h2 class="no-num no-toc" id="">Editor's Draft 29 March 2010</h2>
3232

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

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

3939
<dt>Latest Version:
4040

@@ -241,18 +241,25 @@ <h2 class="no-num no-toc" id=toc>Table of Contents</h2>
241241
<li><a href="#the-cssvalue-interface"><span class=secno>5.6.3.
242242
</span>The <code title="">CSSValue</code> Interface</a>
243243

244-
<li><a href="#the-csscolorvalue-interface"><span class=secno>5.6.4.
245-
</span>The <code title="">CSSColorValue</code> Interface</a>
244+
<li><a href="#the-cssvaluecomponent-interface"><span
245+
class=secno>5.6.4. </span>The <code title="">CSSValueComponent</code>
246+
Interface</a>
246247

247-
<li><a href="#the-csslengthvalue-interface"><span class=secno>5.6.5.
248-
</span>The <code title="">CSSLengthValue</code> Interface</a>
248+
<li><a href="#the-csscolorvaluecomponent-interface"><span
249+
class=secno>5.6.5. </span>The <code
250+
title="">CSSColorValueComponent</code> Interface</a>
249251

250-
<li><a href="#the-csspercentagevalue-interface"><span
252+
<li><a href="#the-csslengthvaluecomponent-interface"><span
251253
class=secno>5.6.6. </span>The <code
252-
title="">CSSPercentageValue</code> Interface</a>
254+
title="">CSSLengthValueComponent</code> Interface</a>
253255

254-
<li><a href="#the-cssurlvalue-interface"><span class=secno>5.6.7.
255-
</span>The <code title="">CSSURLValue</code> Interface</a>
256+
<li><a href="#the-csspercentagevaluecomponent-interfac"><span
257+
class=secno>5.6.7. </span>The <code
258+
title="">CSSPercentageValueComponent</code> Interface</a>
259+
260+
<li><a href="#the-cssurlvaluecomponent-interface"><span
261+
class=secno>5.6.8. </span>The <code
262+
title="">CSSURLValueComponent</code> Interface</a>
256263
</ul>
257264
</ul>
258265

@@ -3488,15 +3495,19 @@ <h4 id=the-cssstyledeclarationvalue-interface><span class=secno>5.5.2.
34883495
<pre
34893496
class=idl>interface <dfn id=cssstyledeclarationvalue>CSSStyleDeclarationValue</dfn> {
34903497
<span class=XXX>// ...</span>
3498+
3499+
// CSS Properties
3500+
<!--CSSOM-DECLARATIONVALUEIDL-->
34913501
};</pre>
34923502

34933503
<p class=XXX>The rought idea is that this interface exposes the full list
34943504
of supported properties as well that each return a <code><a
34953505
href="#cssvalue">CSSValue</a></code> object. That object can implement
34963506
other objects depending on the property involved. E.g. for
34973507
'<code>width</code>' the object would implement <code><a
3498-
href="#csslengthvalue">CSSLengthValue</a></code> and <code><a
3499-
href="#csspercentagevalue">CSSPercentageValue</a></code>.
3508+
href="#csslengthvaluecomponent">CSSLengthValueComponent</a></code> and
3509+
<code><a
3510+
href="#csspercentagevaluecomponent">CSSPercentageValueComponent</a></code>.
35003511

35013512
<h3 id=css-values><span class=secno>5.6. </span>CSS Values</h3>
35023513

@@ -3820,51 +3831,63 @@ <h4 id=the-cssvalue-interface><span class=secno>5.6.3. </span>The <code
38203831
title="">CSSValue</code> Interface</h4>
38213832

38223833
<pre class=idl>interface <dfn id=cssvalue>CSSValue</dfn> {
3823-
readonly attribute DOMString <span title=dom-CSSValue-cssText>cssText</span>;
3834+
attribute DOMString <span title=dom-CSSValue-cssText>cssText</span>;
38243835
};</pre>
38253836

38263837
<p class=XXX>...
38273838

3828-
<h4 id=the-csscolorvalue-interface><span class=secno>5.6.4. </span>The
3829-
<code title="">CSSColorValue</code> Interface</h4>
3839+
<h4 id=the-cssvaluecomponent-interface><span class=secno>5.6.4. </span>The
3840+
<code title="">CSSValueComponent</code> Interface</h4>
38303841

3831-
<pre class=idl>interface <dfn id=csscolorvalue>CSSColorValue</dfn> {
3832-
attribute short <span title=dom-CSSColorValue-red>red</span>;
3833-
attribute short <span title=dom-CSSColorValue-green>green</span>;
3834-
attribute short <span title=dom-CSSColorValue-blue>blue</span>;
3842+
<pre
3843+
class=idl>[NoInterfaceObject] interface <dfn id=cssvaluecomponent>CSSValueComponent</dfn> {
3844+
}</pre>
3845+
3846+
<p class=XXX>...
38353847

3836-
attribute float <span title=dom-CSSColorValue-alpha>alpha</span>;
3848+
<h4 id=the-csscolorvaluecomponent-interface><span class=secno>5.6.5.
3849+
</span>The <code title="">CSSColorValueComponent</code> Interface</h4>
3850+
3851+
<pre
3852+
class=idl>interface <dfn id=csscolorvaluecomponent>CSSColorValueComponent</dfn> : <a href="#cssvaluecomponent">CSSValueComponent</a> {
3853+
attribute short <span title=dom-CSSColorValueComponent-red>red</span>;
3854+
attribute short <span title=dom-CSSColorValueComponent-green>green</span>;
3855+
attribute short <span title=dom-CSSColorValueComponent-blue>blue</span>;
3856+
3857+
attribute float <span title=dom-CSSColorValueComponent-alpha>alpha</span>;
38373858
};</pre>
38383859

38393860
<p class=XXX>...
38403861

3841-
<h4 id=the-csslengthvalue-interface><span class=secno>5.6.5. </span>The
3842-
<code title="">CSSLengthValue</code> Interface</h4>
3862+
<h4 id=the-csslengthvaluecomponent-interface><span class=secno>5.6.6.
3863+
</span>The <code title="">CSSLengthValueComponent</code> Interface</h4>
38433864

3844-
<pre class=idl>interface <dfn id=csslengthvalue>CSSLengthValue</dfn> {
3845-
attribute float <span title=dom-CSSLengthValue-em>em</span>;
3846-
attribute float <span title=dom-CSSLengthValue-ex>ex</span>;
3847-
attribute float <span title=dom-CSSLengthValue-px>px</span>;
3865+
<pre
3866+
class=idl>interface <dfn id=csslengthvaluecomponent>CSSLengthValueComponent</dfn> : <a href="#cssvaluecomponent">CSSValueComponent</a> {
3867+
attribute float <span title=dom-CSSLengthValueComponent-em>em</span>;
3868+
attribute float <span title=dom-CSSLengthValueComponent-ex>ex</span>;
3869+
attribute float <span title=dom-CSSLengthValueComponent-px>px</span>;
38483870
<span class=XXX>// figure out what to do with absolute lengths</span>
38493871
};</pre>
38503872

38513873
<p class=XXX>...
38523874

3853-
<h4 id=the-csspercentagevalue-interface><span class=secno>5.6.6. </span>The
3854-
<code title="">CSSPercentageValue</code> Interface</h4>
3875+
<h4 id=the-csspercentagevaluecomponent-interfac><span class=secno>5.6.7.
3876+
</span>The <code title="">CSSPercentageValueComponent</code> Interface</h4>
38553877

38563878
<pre
3857-
class=idl>interface <dfn id=csspercentagevalue>CSSPercentageValue</dfn> {
3858-
attribute float <span title=dom-CSSPercentageValue>percent</span>;
3879+
class=idl>interface <dfn id=csspercentagevaluecomponent>CSSPercentageValueComponent</dfn> : <a href="#cssvaluecomponent">CSSValueComponent</a> {
3880+
attribute float <span title=dom-CSSPercentageValueComponent>percent</span>;
38593881
};</pre>
38603882

38613883
<p class=XXX>...
38623884

3863-
<h4 id=the-cssurlvalue-interface><span class=secno>5.6.7. </span>The <code
3864-
title="">CSSURLValue</code> Interface</h4>
3885+
<h4 id=the-cssurlvaluecomponent-interface><span class=secno>5.6.8.
3886+
</span>The <code title="">CSSURLValueComponent</code> Interface</h4>
38653887

3866-
<pre class=idl>interface <dfn id=cssurlvalue>CSSURLValue</dfn> {
3867-
attribute DOMString <span title=dom-CSSURLValue-url>url</span>;
3888+
<pre
3889+
class=idl>interface <dfn id=cssurlvaluecomponent>CSSURLValueComponent</dfn> : <a href="#cssvaluecomponent">CSSValueComponent</a> {
3890+
attribute DOMString? <span title=dom-CSSURLValueComponent-url>url</span>;
38683891
};</pre>
38693892

38703893
<p class=XXX>...

cssom/Overview.src.html

Lines changed: 34 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,7 +1969,7 @@ <h4>The <code title="">CSSStyleDeclaration</code> Interface</h4>
19691969
readonly attribute <span>CSSRule</span> <span title="dom-CSSStyleDeclaration-parentRule">parentRule</span>;
19701970

19711971
// CSS Properties
1972-
<!--CSSOM-PROPERTYIDL-->
1972+
<!--CSSOM-DECLARATIONIDL-->
19731973
};</pre>
19741974

19751975
<p>The
@@ -2112,7 +2112,7 @@ <h4>The <code title="">CSSStyleDeclaration</code> Interface</h4>
21122112
<th>IDL attribute
21132113
<th>CSS property
21142114
<tbody>
2115-
<!--CSSOM-PROPERTYTABLE-->
2115+
<!--CSSOM-DECLARATIONTABLE-->
21162116
</table>
21172117

21182118
<!--
@@ -2145,14 +2145,17 @@ <h4>The <code title="">CSSStyleDeclarationValue</code> Interface</h4>
21452145

21462146
<pre class="idl">interface <dfn>CSSStyleDeclarationValue</dfn> {
21472147
<span class="XXX">// ...</span>
2148+
2149+
// CSS Properties
2150+
<!--CSSOM-DECLARATIONVALUEIDL-->
21482151
};</pre>
21492152

21502153
<p class="XXX">The rought idea is that this interface exposes the full
21512154
list of supported properties as well that each return a
21522155
<code>CSSValue</code> object. That object can implement other objects
21532156
depending on the property involved. E.g. for '<code>width</code>' the
2154-
object would implement <code>CSSLengthValue</code> and
2155-
<code>CSSPercentageValue</code>.</p>
2157+
object would implement <code>CSSLengthValueComponent</code> and
2158+
<code>CSSPercentageValueComponent</code>.</p>
21562159

21572160

21582161
<h3>CSS Values</h3>
@@ -2400,50 +2403,58 @@ <h5>Examples</h5>
24002403
<h4>The <code title="">CSSValue</code> Interface</h4>
24012404

24022405
<pre class="idl">interface <dfn>CSSValue</dfn> {
2403-
readonly attribute DOMString <span title="dom-CSSValue-cssText">cssText</span>;
2406+
attribute DOMString <span title="dom-CSSValue-cssText">cssText</span>;
24042407
};</pre>
24052408

24062409
<p class="XXX">...</p>
24072410

2411+
2412+
<h4>The <code title="">CSSValueComponent</code> Interface</h4>
24082413

2409-
<h4>The <code title="">CSSColorValue</code> Interface</h4>
2414+
<pre class="idl">[NoInterfaceObject] interface <dfn>CSSValueComponent</dfn> {
2415+
}</pre>
2416+
2417+
<p class="XXX">...</p>
2418+
2419+
2420+
<h4>The <code title="">CSSColorValueComponent</code> Interface</h4>
24102421

2411-
<pre class="idl">interface <dfn>CSSColorValue</dfn> {
2412-
attribute short <span title="dom-CSSColorValue-red">red</span>;
2413-
attribute short <span title="dom-CSSColorValue-green">green</span>;
2414-
attribute short <span title="dom-CSSColorValue-blue">blue</span>;
2422+
<pre class="idl">interface <dfn>CSSColorValueComponent</dfn> : <span>CSSValueComponent</span> {
2423+
attribute short <span title="dom-CSSColorValueComponent-red">red</span>;
2424+
attribute short <span title="dom-CSSColorValueComponent-green">green</span>;
2425+
attribute short <span title="dom-CSSColorValueComponent-blue">blue</span>;
24152426

2416-
attribute float <span title="dom-CSSColorValue-alpha">alpha</span>;
2427+
attribute float <span title="dom-CSSColorValueComponent-alpha">alpha</span>;
24172428
};</pre>
24182429

24192430
<p class="XXX">...</p>
24202431

24212432

2422-
<h4>The <code title="">CSSLengthValue</code> Interface</h4>
2433+
<h4>The <code title="">CSSLengthValueComponent</code> Interface</h4>
24232434

2424-
<pre class="idl">interface <dfn>CSSLengthValue</dfn> {
2425-
attribute float <span title="dom-CSSLengthValue-em">em</span>;
2426-
attribute float <span title="dom-CSSLengthValue-ex">ex</span>;
2427-
attribute float <span title="dom-CSSLengthValue-px">px</span>;
2435+
<pre class="idl">interface <dfn>CSSLengthValueComponent</dfn> : <span>CSSValueComponent</span> {
2436+
attribute float <span title="dom-CSSLengthValueComponent-em">em</span>;
2437+
attribute float <span title="dom-CSSLengthValueComponent-ex">ex</span>;
2438+
attribute float <span title="dom-CSSLengthValueComponent-px">px</span>;
24282439
<span class="XXX">// figure out what to do with absolute lengths</span>
24292440
};</pre>
24302441

24312442
<p class="XXX">...</p>
24322443

24332444

2434-
<h4>The <code title="">CSSPercentageValue</code> Interface</h4>
2445+
<h4>The <code title="">CSSPercentageValueComponent</code> Interface</h4>
24352446

2436-
<pre class="idl">interface <dfn>CSSPercentageValue</dfn> {
2437-
attribute float <span title="dom-CSSPercentageValue">percent</span>;
2447+
<pre class="idl">interface <dfn>CSSPercentageValueComponent</dfn> : <span>CSSValueComponent</span> {
2448+
attribute float <span title="dom-CSSPercentageValueComponent">percent</span>;
24382449
};</pre>
24392450

24402451
<p class="XXX">...</p>
24412452

24422453

2443-
<h4>The <code title="">CSSURLValue</code> Interface</h4>
2444-
2445-
<pre class="idl">interface <dfn>CSSURLValue</dfn> {
2446-
attribute DOMString <span title="dom-CSSURLValue-url">url</span>;
2454+
<h4>The <code title="">CSSURLValueComponent</code> Interface</h4>
2455+
2456+
<pre class="idl">interface <dfn>CSSURLValueComponent</dfn> : <span>CSSValueComponent</span> {
2457+
attribute DOMString? <span title="dom-CSSURLValueComponent-url">url</span>;
24472458
};</pre>
24482459

24492460
<p class="XXX">...</p>

0 commit comments

Comments
 (0)