You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<divclass="example"><p>For example, for the 'font-size' property there would be a <codetitle="">fontSize</code> IDL attribute.</div>
2581
2581
2582
-
<!-- [GA] Remove spec text for so called "dashed-attribute" until consensus obtains on whether to include in spec.
2583
-
2584
-
<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)
2585
-
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
2586
-
<code>CSSStyleDeclaration</code> interface with the type being <code title>DOMString</code> and the <span data-anolis-spec=webidl>identifier</span> being
2582
+
<p>For each CSS property <var>property</var> that is a <ahref="#supported-css-property">supported CSS property</a>, except for properties that have no "<codetitle="">-</code>" (U+002D)
2583
+
in the property name, user agents must act as if there was a WebIDL <aclass="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-regular-attribute">regular attribute</a> member as part of the
2584
+
<code><ahref="#cssstyledeclaration">CSSStyleDeclaration</a></code> interface with the type being <codetitle="">DOMString</code> and the <aclass="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-identifier">identifier</a> being
2587
2585
<var>property</var>, and let <var>dashed attribute</var> be <var>property</var>.
2588
2586
2589
-
<p>The <dfn title=dom-CSSStyleDeclaration-dashed-attribute><code><var>dashed attribute</var></code></dfn> attribute, on getting, must return the
2590
-
result of invoking <code title=dom-CSSStyleDeclaration-getPropertyValue>getPropertyValue()</code> with the
2587
+
<p>The <dfnid="dom-cssstyledeclaration-dashed-attribute" title="dom-CSSStyleDeclaration-dashed-attribute"><code><var>dashed attribute</var></code></dfn> attribute, on getting, must return the
2588
+
result of invoking <codetitle="dom-CSSStyleDeclaration-getPropertyValue"><ahref="#dom-cssstyledeclaration-getpropertyvalue">getPropertyValue()</a></code> with the
2591
2589
argument being <var>dashed attribute</var>.</p>
2592
2590
2593
-
<p>Setting the <code title=dom-CSSStyleDeclaration-dashed-attribute><var>dashed attribute</var></code> attribute must invoke
2594
-
<code title=dom-CSSStyleDeclaration-setProperty>setProperty()</code> with the
2591
+
<p>Setting the <codetitle="dom-CSSStyleDeclaration-dashed-attribute"><ahref="#dom-cssstyledeclaration-dashed-attribute"><var>dashed attribute</var></a></code> attribute must invoke
2592
+
<codetitle="dom-CSSStyleDeclaration-setProperty"><ahref="#dom-cssstyledeclaration-setproperty">setProperty()</a></code> with the
2595
2593
first argument being <var>dashed attribute</var>, as second argument the given value, and no third argument. Any
2596
2594
exceptions thrown must be re-thrown.</p>
2597
2595
2598
-
<div class=example>
2599
-
<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
2600
-
follows, assuming <var>element</var> is an <span data-anolis-spec=htmltitle="HTML elements">HTML element</span>:
2596
+
<divclass="example">
2597
+
<p>For example, for the 'font-size' property there would be a <codetitle="">font-size</code> IDL attribute. In JavaScript, the property can be accessed as
2598
+
follows, assuming <var>element</var> is an <aclass="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>:
2601
2599
<pre><var>element</var>.style['font-size'];</pre>
2602
2600
</div>
2603
2601
2604
-
<p class=note>WebIDL does not allow dashes in identifiers in its syntax.
2605
-
2606
-
<p class=issue>The <code title=dom-CSSStyleDeclaration-dashed-attribute><var>dashed attribute</var></code> attributes will be removed from the specification
2607
-
if implementations remove support. User agents that currently support them are urged to experiment with removing support.
2608
-
2609
-
-->
2602
+
<pclass="note">WebIDL does not allow dashes in identifiers in its syntax.
2610
2603
2611
2604
<p>The <dfnid="css-property-to-idl-attribute">CSS property to IDL attribute</dfn> algorithm for <var>property</var> is as
<divclass=example><p>For example, for the 'font-size' property there would be a <codetitle>fontSize</code> IDL attribute.</div>
2498
2498
2499
-
<!-- [GA] Remove spec text for so called "dashed-attribute" until consensus obtains on whether to include in spec.
2500
-
2501
2499
<p>For each CSS property <var>property</var> that is a <span>supported CSS property</span>, except for properties that have no "<codetitle>-</code>" (U+002D)
2502
2500
in the property name, user agents must act as if there was a WebIDL <spandata-anolis-spec=webidl>regular attribute</span> member as part of the
2503
2501
<code>CSSStyleDeclaration</code> interface with the type being <codetitle>DOMString</code> and the <spandata-anolis-spec=webidl>identifier</span> being
<pclass=note>WebIDL does not allow dashes in identifiers in its syntax.
2522
2520
2523
-
<p class=issue>The <code title=dom-CSSStyleDeclaration-dashed-attribute><var>dashed attribute</var></code> attributes will be removed from the specification
2524
-
if implementations remove support. User agents that currently support them are urged to experiment with removing support.
2525
-
2526
-
-->
2527
-
2528
2521
<p>The <dfn>CSS property to IDL attribute</dfn> algorithm for <var>property</var> is as
0 commit comments