|
8 | 8 | </head> |
9 | 9 | <body class="h-entry"> |
10 | 10 | <div class="head"> |
11 | | - <p data-fill-with="logo"><a href="http://www.w3.org/"> |
| 11 | + <p data-fill-with="logo"><a href="http://www.w3.org/" class="logo"> |
12 | 12 | <img width="72" alt="W3C" src="http://www.w3.org/Icons/w3c_home" height="48"> |
13 | 13 | </a></p> |
14 | 14 | <h1 class="p-name no-ref" id="title">CSS Custom Properties for Cascading Variables Module Level 1</h1> |
15 | 15 | <h2 class="no-num no-toc no-ref" id="subtitle">Editor's Draft, |
16 | | - <span class="dt-updated"><span class="value-title" title="20130619">19 June 2013</span></span></h2> |
| 16 | + <span class="dt-updated"><span class="value-title" title="20130620">20 June 2013</span></span></h2> |
17 | 17 | <div data-fill-with="spec-metadata"><dl><dt>This version:</dt><dd><a href="http://dev.w3.org/csswg/css-variables/" class="u-url">http://dev.w3.org/csswg/css-variables/</a></dd><dt>Latest version:</dt><dd><a href="http://www.w3.org/TR/css-variables-1/">http://www.w3.org/TR/css-variables-1/</a></dd><dt>Editor's Draft:</dt><dd><a href="http://dev.w3.org/csswg/css-variables/">http://dev.w3.org/csswg/css-variables/</a></dd><dt>Previous Versions:</dt><dd><a href="http://www.w3.org/TR/2013/WD-css-variables-20130312/" rel="previous">http://www.w3.org/TR/2013/WD-css-variables-20130312/</a></dd><dd><a href="http://www.w3.org/TR/2012/WD-css-variables-20120410/" rel="previous">http://www.w3.org/TR/2012/WD-css-variables-20120410/</a> |
18 | 18 | </dd><dt>Feedback:</dt> |
19 | 19 | <dd><a href="mailto:www-style@w3.org?subject=%5Bcss-variables%5D%20feedback">www-style@w3.org</a> |
@@ -720,7 +720,7 @@ <h3 id="the-cssstyledeclaration-interface" data-level="4.1"><span class="secno"> |
720 | 720 | on the <a data-autolink="link" href="#associated-style-declaration">associated style declaration</a> |
721 | 721 | by passing <var>varName</var> and <var>varValue</var> as its two arguments, in that order. |
722 | 722 |
|
723 | | - </dd><dt>delete(DOMString varName), return DOMString |
| 723 | + </dd><dt>delete(DOMString varName), return boolean |
724 | 724 | </dt><dd> |
725 | 725 | Prepend "var-" to <var>varName</var>. |
726 | 726 | Invoke <code>removeProperty()</code> |
@@ -786,12 +786,11 @@ <h3 id="the-cssstyledeclaration-interface" data-level="4.1"><span class="secno"> |
786 | 786 | is also simple with the <code>var</code> property: |
787 | 787 |
|
788 | 788 | <pre>var customProps = el.style.var; |
789 | | -for(customPropName in customProps) { |
790 | | - if( knownCustomPropName(customPropName) ) { |
791 | | - var customPropValue = customProps[customPropName]; |
| 789 | +customProps.forEach(function(propValue, propName) { |
| 790 | + if( knownCustomPropName(propName) ) { |
792 | 791 | /* Processing code here. */ |
793 | 792 | } |
794 | | -} |
| 793 | +}); |
795 | 794 | </pre> </div> |
796 | 795 |
|
797 | 796 |
|
|
0 commit comments