Skip to content

Commit 3e3a56a

Browse files
author
Simon Pieters
committed
[cssom] Uncomment dashed properties. Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=17098
1 parent 243a303 commit 3e3a56a

2 files changed

Lines changed: 11 additions & 25 deletions

File tree

cssom/Overview.html

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2579,34 +2579,27 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.6.1 </span>The
25792579

25802580
<div class="example"><p>For example, for the 'font-size' property there would be a <code title="">fontSize</code> IDL attribute.</div>
25812581

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 <a href="#supported-css-property">supported CSS property</a>, except for properties that have no "<code title="">-</code>" (U+002D)
2583+
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
2584+
<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
25872585
<var>property</var>, and let <var>dashed attribute</var> be <var>property</var>.
25882586

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 <dfn id="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 <code title="dom-CSSStyleDeclaration-getPropertyValue"><a href="#dom-cssstyledeclaration-getpropertyvalue">getPropertyValue()</a></code> with the
25912589
argument being <var>dashed attribute</var>.</p>
25922590

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 <code title="dom-CSSStyleDeclaration-dashed-attribute"><a href="#dom-cssstyledeclaration-dashed-attribute"><var>dashed attribute</var></a></code> attribute must invoke
2592+
<code title="dom-CSSStyleDeclaration-setProperty"><a href="#dom-cssstyledeclaration-setproperty">setProperty()</a></code> with the
25952593
first argument being <var>dashed attribute</var>, as second argument the given value, and no third argument. Any
25962594
exceptions thrown must be re-thrown.</p>
25972595

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=html title="HTML elements">HTML element</span>:
2596+
<div class="example">
2597+
<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
2598+
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>:
26012599
<pre><var>element</var>.style['font-size'];</pre>
26022600
</div>
26032601

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+
<p class="note">WebIDL does not allow dashes in identifiers in its syntax.
26102603

26112604
<p>The <dfn id="css-property-to-idl-attribute">CSS property to IDL attribute</dfn> algorithm for <var>property</var> is as
26122605
follows:</p>

cssom/Overview.src.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2496,8 +2496,6 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
24962496

24972497
<div class=example><p>For example, for the 'font-size' property there would be a <code title>fontSize</code> IDL attribute.</div>
24982498

2499-
<!-- [GA] Remove spec text for so called "dashed-attribute" until consensus obtains on whether to include in spec.
2500-
25012499
<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)
25022500
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
25032501
<code>CSSStyleDeclaration</code> interface with the type being <code title>DOMString</code> and the <span data-anolis-spec=webidl>identifier</span> being
@@ -2520,11 +2518,6 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
25202518

25212519
<p class=note>WebIDL does not allow dashes in identifiers in its syntax.
25222520

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-
25282521
<p>The <dfn>CSS property to IDL attribute</dfn> algorithm for <var>property</var> is as
25292522
follows:</p>
25302523

0 commit comments

Comments
 (0)