|
28 | 28 | <div class=head> |
29 | 29 | <h1 id=cssom>CSSOM</h1> |
30 | 30 |
|
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> |
32 | 32 |
|
33 | 33 | <dl> |
34 | 34 | <dt>This Version: |
35 | 35 |
|
36 | 36 | <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> |
38 | 38 |
|
39 | 39 | <dt>Latest Version: |
40 | 40 |
|
@@ -241,18 +241,25 @@ <h2 class="no-num no-toc" id=toc>Table of Contents</h2> |
241 | 241 | <li><a href="#the-cssvalue-interface"><span class=secno>5.6.3. |
242 | 242 | </span>The <code title="">CSSValue</code> Interface</a> |
243 | 243 |
|
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> |
246 | 247 |
|
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> |
249 | 251 |
|
250 | | - <li><a href="#the-csspercentagevalue-interface"><span |
| 252 | + <li><a href="#the-csslengthvaluecomponent-interface"><span |
251 | 253 | class=secno>5.6.6. </span>The <code |
252 | | - title="">CSSPercentageValue</code> Interface</a> |
| 254 | + title="">CSSLengthValueComponent</code> Interface</a> |
253 | 255 |
|
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> |
256 | 263 | </ul> |
257 | 264 | </ul> |
258 | 265 |
|
@@ -3488,15 +3495,19 @@ <h4 id=the-cssstyledeclarationvalue-interface><span class=secno>5.5.2. |
3488 | 3495 | <pre |
3489 | 3496 | class=idl>interface <dfn id=cssstyledeclarationvalue>CSSStyleDeclarationValue</dfn> { |
3490 | 3497 | <span class=XXX>// ...</span> |
| 3498 | + |
| 3499 | + // CSS Properties |
| 3500 | +<!--CSSOM-DECLARATIONVALUEIDL--> |
3491 | 3501 | };</pre> |
3492 | 3502 |
|
3493 | 3503 | <p class=XXX>The rought idea is that this interface exposes the full list |
3494 | 3504 | of supported properties as well that each return a <code><a |
3495 | 3505 | href="#cssvalue">CSSValue</a></code> object. That object can implement |
3496 | 3506 | other objects depending on the property involved. E.g. for |
3497 | 3507 | '<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>. |
3500 | 3511 |
|
3501 | 3512 | <h3 id=css-values><span class=secno>5.6. </span>CSS Values</h3> |
3502 | 3513 |
|
@@ -3820,51 +3831,63 @@ <h4 id=the-cssvalue-interface><span class=secno>5.6.3. </span>The <code |
3820 | 3831 | title="">CSSValue</code> Interface</h4> |
3821 | 3832 |
|
3822 | 3833 | <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>; |
3824 | 3835 | };</pre> |
3825 | 3836 |
|
3826 | 3837 | <p class=XXX>... |
3827 | 3838 |
|
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> |
3830 | 3841 |
|
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>... |
3835 | 3847 |
|
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>; |
3837 | 3858 | };</pre> |
3838 | 3859 |
|
3839 | 3860 | <p class=XXX>... |
3840 | 3861 |
|
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> |
3843 | 3864 |
|
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>; |
3848 | 3870 | <span class=XXX>// figure out what to do with absolute lengths</span> |
3849 | 3871 | };</pre> |
3850 | 3872 |
|
3851 | 3873 | <p class=XXX>... |
3852 | 3874 |
|
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> |
3855 | 3877 |
|
3856 | 3878 | <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>; |
3859 | 3881 | };</pre> |
3860 | 3882 |
|
3861 | 3883 | <p class=XXX>... |
3862 | 3884 |
|
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> |
3865 | 3887 |
|
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>; |
3868 | 3891 | };</pre> |
3869 | 3892 |
|
3870 | 3893 | <p class=XXX>... |
|
0 commit comments