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
<p>The <dfnid="dom-cssstyledeclaration-attribute" title="dom-CSSStyleDeclaration-attribute"><code><vartitle="">attribute</var></code></dfn> attribute, on getting, must return the result of invoking
2277
-
<codetitle="dom-CSSStyleDeclaration-getPropertyValue"><ahref="#dom-cssstyledeclaration-getpropertyvalue">getPropertyValue()</a></code> with the
2276
+
<p>The <dfnid="dom-cssstyledeclaration-camel-cased-attribute" title="dom-CSSStyleDeclaration-camel-cased-attribute"><code><vartitle="">camel-cased attribute</var></code></dfn> attribute, on getting, must return the
2277
+
result of invoking <codetitle="dom-CSSStyleDeclaration-getPropertyValue"><ahref="#dom-cssstyledeclaration-getpropertyvalue">getPropertyValue()</a></code> with the
2278
2278
argument being the result of running the <ahref="#idl-attribute-to-css-property">IDL attribute to CSS property</a>
2279
-
algorithm for <var>attribute</var>.</p>
2279
+
algorithm for <vartitle="">camel-cased attribute</var>.</p>
2280
2280
2281
-
<p>Setting the <codetitle="dom-CSSStyleDeclaration-attribute"><ahref="#dom-cssstyledeclaration-attribute"><var>attribute</var></a></code> attribute must invoke
2281
+
<p>Setting the <codetitle="dom-CSSStyleDeclaration-camel-cased-attribute"><ahref="#dom-cssstyledeclaration-camel-cased-attribute"><vartitle="">camel-cased attribute</var></a></code> attribute must invoke
2282
2282
<codetitle="dom-CSSStyleDeclaration-setProperty"><ahref="#dom-cssstyledeclaration-setproperty">setProperty()</a></code> with the
2283
2283
first argument being the result of running the <ahref="#idl-attribute-to-css-property">IDL attribute to CSS property</a>
2284
-
algorithm for <var>attribute</var>, as second argument the given value, and no third argument. Any
2284
+
algorithm for <vartitle="">camel-cased attribute</var>, as second argument the given value, and no third argument. Any
2285
2285
exceptions thrown must be re-thrown.</p>
2286
2286
2287
+
<pclass="example">For example, for the 'font-size' property there would be a <codetitle="">fontSize</code> IDL attribute.
2288
+
2289
+
<p>For each CSS property <vartitle="">property</var> that the user agent supports, except for properties that have no "<codetitle="">-</code>" (U+002D) in the
2290
+
property name, user agents must act as if there was a WebIDL <aclass="external" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-regular-attribute">regular attribute</a> member as part of the
2291
+
<code><ahref="#cssstyledeclaration">CSSStyleDeclaration</a></code> interface with the type being <codetitle="">DOMString</code> and the <aclass="external" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-identifier">identifier</a> being
2292
+
<vartitle="">property</var>, and let <vartitle="">dashed attribute</var> be <vartitle="">property</var>.
2293
+
2294
+
<p>The <dfnid="dom-cssstyledeclaration-dashed-attribute" title="dom-CSSStyleDeclaration-dashed-attribute"><code><vartitle="">dashed attribute</var></code></dfn> attribute, on getting, must return the
2295
+
result of invoking <codetitle="dom-CSSStyleDeclaration-getPropertyValue"><ahref="#dom-cssstyledeclaration-getpropertyvalue">getPropertyValue()</a></code> with the
2296
+
argument being <vartitle="">dashed attribute</var>.</p>
2297
+
2298
+
<p>Setting the <codetitle="dom-CSSStyleDeclaration-dashed-attribute"><ahref="#dom-cssstyledeclaration-dashed-attribute"><vartitle="">dashed attribute</var></a></code> attribute must invoke
2299
+
<codetitle="dom-CSSStyleDeclaration-setProperty"><ahref="#dom-cssstyledeclaration-setproperty">setProperty()</a></code> with the
2300
+
first argument being <vartitle="">dashed attribute</var>, as second argument the given value, and no third argument. Any
2301
+
exceptions thrown must be re-thrown.</p>
2302
+
2303
+
<divclass="example">
2304
+
<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
2305
+
follows, assuming <vartitle="">element</var> is an <aclass="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#html-elements" title="HTML elements">HTML element</a>:
<p>The <dfntitle=dom-CSSStyleDeclaration-attribute><code><vartitle>attribute</var></code></dfn> attribute, on getting, must return the result of invoking
2208
-
<codetitle=dom-CSSStyleDeclaration-getPropertyValue>getPropertyValue()</code> with the
2207
+
<p>The <dfntitle=dom-CSSStyleDeclaration-camel-cased-attribute><code><vartitle>camel-cased attribute</var></code></dfn> attribute, on getting, must return the
2208
+
result of invoking <codetitle=dom-CSSStyleDeclaration-getPropertyValue>getPropertyValue()</code> with the
2209
2209
argument being the result of running the <span>IDL attribute to CSS property</span>
2210
-
algorithm for <var>attribute</var>.</p>
2210
+
algorithm for <vartitle>camel-cased attribute</var>.</p>
2211
2211
2212
-
<p>Setting the <codetitle=dom-CSSStyleDeclaration-attribute><var>attribute</var></code> attribute must invoke
2212
+
<p>Setting the <codetitle=dom-CSSStyleDeclaration-camel-cased-attribute><vartitle>camel-cased attribute</var></code> attribute must invoke
2213
2213
<codetitle=dom-CSSStyleDeclaration-setProperty>setProperty()</code> with the
2214
2214
first argument being the result of running the <span>IDL attribute to CSS property</span>
2215
-
algorithm for <var>attribute</var>, as second argument the given value, and no third argument. Any
2215
+
algorithm for <vartitle>camel-cased attribute</var>, as second argument the given value, and no third argument. Any
2216
2216
exceptions thrown must be re-thrown.</p>
2217
2217
2218
+
<pclass=example>For example, for the 'font-size' property there would be a <codetitle>fontSize</code> IDL attribute.
2219
+
2220
+
<p>For each CSS property <vartitle>property</var> that the user agent supports, except for properties that have no "<codetitle>-</code>" (U+002D) in the
2221
+
property name, user agents must act as if there was a WebIDL <spandata-anolis-spec=webidl>regular attribute</span> member as part of the
2222
+
<code>CSSStyleDeclaration</code> interface with the type being <codetitle>DOMString</code> and the <spandata-anolis-spec=webidl>identifier</span> being
2223
+
<vartitle>property</var>, and let <vartitle>dashed attribute</var> be <vartitle>property</var>.
2224
+
2225
+
<p>The <dfntitle=dom-CSSStyleDeclaration-dashed-attribute><code><vartitle>dashed attribute</var></code></dfn> attribute, on getting, must return the
2226
+
result of invoking <codetitle=dom-CSSStyleDeclaration-getPropertyValue>getPropertyValue()</code> with the
2227
+
argument being <vartitle>dashed attribute</var>.</p>
2228
+
2229
+
<p>Setting the <codetitle=dom-CSSStyleDeclaration-dashed-attribute><vartitle>dashed attribute</var></code> attribute must invoke
2230
+
<codetitle=dom-CSSStyleDeclaration-setProperty>setProperty()</code> with the
2231
+
first argument being <vartitle>dashed attribute</var>, as second argument the given value, and no third argument. Any
2232
+
exceptions thrown must be re-thrown.</p>
2233
+
2234
+
<divclass=example>
2235
+
<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
2236
+
follows, assuming <vartitle>element</var> is an <spandata-anolis-spec=htmltitle="HTML elements">HTML element</span>:
0 commit comments