Tue, 29 Apr 2014 08:24:36 +0200
[cssom] Uncomment dashed properties. Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=17098
cssom/Overview.html | file | annotate | diff | comparison | revisions | |
cssom/Overview.src.html | file | annotate | diff | comparison | revisions |
1.1 --- a/cssom/Overview.html Mon Apr 28 21:02:13 2014 -0700 1.2 +++ b/cssom/Overview.html Tue Apr 29 08:24:36 2014 +0200 1.3 @@ -2579,34 +2579,27 @@ 1.4 1.5 <div class="example"><p>For example, for the 'font-size' property there would be a <code title="">fontSize</code> IDL attribute.</div> 1.6 1.7 -<!-- [GA] Remove spec text for so called "dashed-attribute" until consensus obtains on whether to include in spec. 1.8 - 1.9 -<p>For each CSS property <var>property</var> that is a <span>supported CSS property</span>, except for properties that have no "<code title>-</code>" (U+002D) 1.10 -in the property name, user agents must act as if there was a WebIDL <span data-anolis-spec=webidl>regular attribute</span> member as part of the 1.11 -<code>CSSStyleDeclaration</code> interface with the type being <code title>DOMString</code> and the <span data-anolis-spec=webidl>identifier</span> being 1.12 +<p>For each CSS property <var>property</var> that is a <a href="#supported-css-property">supported CSS property</a>, except for properties that have no "<code title="">-</code>" (U+002D) 1.13 +in the property name, user agents must act as if there was a WebIDL <a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-regular-attribute">regular attribute</a> member as part of the 1.14 +<code><a href="#cssstyledeclaration">CSSStyleDeclaration</a></code> interface with the type being <code title="">DOMString</code> and the <a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-identifier">identifier</a> being 1.15 <var>property</var>, and let <var>dashed attribute</var> be <var>property</var>. 1.16 1.17 -<p>The <dfn title=dom-CSSStyleDeclaration-dashed-attribute><code><var>dashed attribute</var></code></dfn> attribute, on getting, must return the 1.18 -result of invoking <code title=dom-CSSStyleDeclaration-getPropertyValue>getPropertyValue()</code> with the 1.19 +<p>The <dfn id="dom-cssstyledeclaration-dashed-attribute" title="dom-CSSStyleDeclaration-dashed-attribute"><code><var>dashed attribute</var></code></dfn> attribute, on getting, must return the 1.20 +result of invoking <code title="dom-CSSStyleDeclaration-getPropertyValue"><a href="#dom-cssstyledeclaration-getpropertyvalue">getPropertyValue()</a></code> with the 1.21 argument being <var>dashed attribute</var>.</p> 1.22 1.23 -<p>Setting the <code title=dom-CSSStyleDeclaration-dashed-attribute><var>dashed attribute</var></code> attribute must invoke 1.24 -<code title=dom-CSSStyleDeclaration-setProperty>setProperty()</code> with the 1.25 +<p>Setting the <code title="dom-CSSStyleDeclaration-dashed-attribute"><a href="#dom-cssstyledeclaration-dashed-attribute"><var>dashed attribute</var></a></code> attribute must invoke 1.26 +<code title="dom-CSSStyleDeclaration-setProperty"><a href="#dom-cssstyledeclaration-setproperty">setProperty()</a></code> with the 1.27 first argument being <var>dashed attribute</var>, as second argument the given value, and no third argument. Any 1.28 exceptions thrown must be re-thrown.</p> 1.29 1.30 -<div class=example> 1.31 - <p>For example, for the 'font-size' property there would be a <code title>font-size</code> IDL attribute. In JavaScript, the property can be accessed as 1.32 - follows, assuming <var>element</var> is an <span data-anolis-spec=html title="HTML elements">HTML element</span>: 1.33 +<div class="example"> 1.34 + <p>For example, for the 'font-size' property there would be a <code title="">font-size</code> IDL attribute. In JavaScript, the property can be accessed as 1.35 + follows, assuming <var>element</var> is an <a class="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#html-elements" title="HTML elements">HTML element</a>: 1.36 <pre><var>element</var>.style['font-size'];</pre> 1.37 </div> 1.38 1.39 -<p class=note>WebIDL does not allow dashes in identifiers in its syntax. 1.40 - 1.41 -<p class=issue>The <code title=dom-CSSStyleDeclaration-dashed-attribute><var>dashed attribute</var></code> attributes will be removed from the specification 1.42 -if implementations remove support. User agents that currently support them are urged to experiment with removing support. 1.43 - 1.44 ---> 1.45 +<p class="note">WebIDL does not allow dashes in identifiers in its syntax. 1.46 1.47 <p>The <dfn id="css-property-to-idl-attribute">CSS property to IDL attribute</dfn> algorithm for <var>property</var> is as 1.48 follows:</p>
2.1 --- a/cssom/Overview.src.html Mon Apr 28 21:02:13 2014 -0700 2.2 +++ b/cssom/Overview.src.html Tue Apr 29 08:24:36 2014 +0200 2.3 @@ -2496,8 +2496,6 @@ 2.4 2.5 <div class=example><p>For example, for the 'font-size' property there would be a <code title>fontSize</code> IDL attribute.</div> 2.6 2.7 -<!-- [GA] Remove spec text for so called "dashed-attribute" until consensus obtains on whether to include in spec. 2.8 - 2.9 <p>For each CSS property <var>property</var> that is a <span>supported CSS property</span>, except for properties that have no "<code title>-</code>" (U+002D) 2.10 in the property name, user agents must act as if there was a WebIDL <span data-anolis-spec=webidl>regular attribute</span> member as part of the 2.11 <code>CSSStyleDeclaration</code> interface with the type being <code title>DOMString</code> and the <span data-anolis-spec=webidl>identifier</span> being 2.12 @@ -2520,11 +2518,6 @@ 2.13 2.14 <p class=note>WebIDL does not allow dashes in identifiers in its syntax. 2.15 2.16 -<p class=issue>The <code title=dom-CSSStyleDeclaration-dashed-attribute><var>dashed attribute</var></code> attributes will be removed from the specification 2.17 -if implementations remove support. User agents that currently support them are urged to experiment with removing support. 2.18 - 2.19 ---> 2.20 - 2.21 <p>The <dfn>CSS property to IDL attribute</dfn> algorithm for <var>property</var> is as 2.22 follows:</p> 2.23