[css-animations][css-transitions] Actually, since we don't have init*Event, there's no point worrying about document.createEvent, so so we can just put the defaults in the init dict.

Mon, 06 May 2013 17:32:22 -0700

author
L. David Baron <dbaron@dbaron.org>
date
Mon, 06 May 2013 17:32:22 -0700
changeset 8066
3ee3ec0b5a5b
parent 8065
4dd4b8ee7b62
child 8067
86059c57e69b

[css-animations][css-transitions] Actually, since we don't have init*Event, there's no point worrying about document.createEvent, so so we can just put the defaults in the init dict.

css-animations/Overview.html file | annotate | diff | comparison | revisions
css-animations/Overview.src.html file | annotate | diff | comparison | revisions
css-transitions/Overview.html file | annotate | diff | comparison | revisions
css-transitions/Overview.src.html file | annotate | diff | comparison | revisions
     1.1 --- a/css-animations/Overview.html	Mon May 06 17:28:32 2013 -0700
     1.2 +++ b/css-animations/Overview.html	Mon May 06 17:32:22 2013 -0700
     1.3 @@ -1521,11 +1521,11 @@
     1.4     id=AnimationEventInit>AnimationEventInit</dfn> : <a class=external
     1.5     href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#eventinit">EventInit</a> {
     1.6    DOMString <span
     1.7 -   title=AnimationEventInit-animationName>animationName</span>;
     1.8 +   title=AnimationEventInit-animationName>animationName</span> = "";
     1.9    float <span
    1.10 -   title=AnimationEventInit-loaded>elapsedTime</span>;
    1.11 +   title=AnimationEventInit-loaded>elapsedTime</span> = 0.0;
    1.12    DOMString <span
    1.13 -   title=AnimationEventInit-pseudoElement>pseudoElement</span>;
    1.14 +   title=AnimationEventInit-pseudoElement>pseudoElement</span> = "";
    1.15  }
    1.16  
    1.17  </pre>
    1.18 @@ -1539,8 +1539,7 @@
    1.19  
    1.20     <dd> The value of the ‘<a href="#animation-name"><code
    1.21      class=property>animation-name</code></a>’ property of the animation
    1.22 -    that fired the event. When an event is created the attribute must be
    1.23 -    initialized to the empty string.
    1.24 +    that fired the event.
    1.25  
    1.26     <dt><code><dfn id=AnimationEvent-elapsedTime>elapsedTime</dfn></code> of
    1.27      type <code>float</code>, readonly
    1.28 @@ -1552,8 +1551,7 @@
    1.29      class=property>animation-delay</code></a>’, in which case the event
    1.30      will be fired with an <a
    1.31      href="#AnimationEvent-elapsedTime"><code>elapsedTime</code></a> of (-1 *
    1.32 -    delay). When an event is created the attribute must be initialized to
    1.33 -    zero.
    1.34 +    delay).
    1.35  
    1.36     <dt><code><dfn id=AnimationEvent-pseudoElement>pseudoElement</dfn></code>
    1.37      of type <code>DOMString</code>, readonly
    1.38 @@ -1562,8 +1560,7 @@
    1.39      which the animation runs (in which case the target of the event is that
    1.40      pseudo-element's corresponding element), or the empty string if the
    1.41      animation runs on an element (which means the target of the event is that
    1.42 -    element). When an event is created the attribute must be initialized to
    1.43 -    the empty string.
    1.44 +    element).
    1.45    </dl>
    1.46  
    1.47    <p> <code id=AnimationEvent-constructor>AnimationEvent(type,
    1.48 @@ -1779,8 +1776,8 @@
    1.49  
    1.50    <h2 id=acknowledgments><span class=secno>7. </span>Acknowledgments</h2>
    1.51  
    1.52 -  <p>Thanks especially to the feedback from Tab Atkins, Carine Bournez,
    1.53 -   Estelle Weyl, and all the rest of the <a
    1.54 +  <p>Thanks especially to the feedback from Tab Atkins, Carine Bournez, Anne
    1.55 +   van Kesteren, Estelle Weyl, and all the rest of the <a
    1.56     href="http://lists.w3.org/Archives/Public/www-style/">www-style</a>
    1.57     community.
    1.58  
     2.1 --- a/css-animations/Overview.src.html	Mon May 06 17:28:32 2013 -0700
     2.2 +++ b/css-animations/Overview.src.html	Mon May 06 17:32:22 2013 -0700
     2.3 @@ -1101,9 +1101,9 @@
     2.4  };
     2.5  
     2.6  dictionary <dfn id="AnimationEventInit">AnimationEventInit</dfn> : <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#eventinit">EventInit</a> {
     2.7 -  DOMString <span title="AnimationEventInit-animationName">animationName</span>;
     2.8 -  float <span title="AnimationEventInit-loaded">elapsedTime</span>;
     2.9 -  DOMString <span title="AnimationEventInit-pseudoElement">pseudoElement</span>;
    2.10 +  DOMString <span title="AnimationEventInit-animationName">animationName</span> = "";
    2.11 +  float <span title="AnimationEventInit-loaded">elapsedTime</span> = 0.0;
    2.12 +  DOMString <span title="AnimationEventInit-pseudoElement">pseudoElement</span> = "";
    2.13  }
    2.14  
    2.15  </pre>
    2.16 @@ -1116,8 +1116,6 @@
    2.17  		<dt><code><dfn id='AnimationEvent-animationName'>animationName</dfn></code> of type <code>DOMString</code>, readonly
    2.18  		<dd>
    2.19  			The value of the 'animation-name' property of the animation that fired the event.
    2.20 -			When an event is created the attribute
    2.21 -			must be initialized to the empty string.
    2.22  				
    2.23  		<dt><code><dfn id='AnimationEvent-elapsedTime'>elapsedTime</dfn></code> of type <code>float</code>, readonly
    2.24  		<dd>
    2.25 @@ -1128,8 +1126,6 @@
    2.26  			For an "animationstart" event, 
    2.27  			the elapsedTime is zero unless there was a negative value for 'animation-delay', 
    2.28  			in which case the event will be fired with an <code>elapsedTime</code> of (-1 * delay).
    2.29 -			When an event is created the attribute
    2.30 -			must be initialized to zero.
    2.31  
    2.32  		<dt><code><dfn id='AnimationEvent-pseudoElement'>pseudoElement</dfn></code> of type <code>DOMString</code>, readonly
    2.33  		<dd>
    2.34 @@ -1138,8 +1134,6 @@
    2.35  			is that pseudo-element's corresponding element), or the empty string
    2.36  			if the animation runs on an element (which means the target of the event 
    2.37  			is that element).
    2.38 -			When an event is created the attribute
    2.39 -			must be initialized to the empty string.
    2.40  	</dl>
    2.41  
    2.42  	<p>
    2.43 @@ -1371,6 +1365,7 @@
    2.44  <p>Thanks especially to the feedback from
    2.45  Tab Atkins,
    2.46  Carine Bournez,
    2.47 +Anne van Kesteren,
    2.48  Estelle Weyl,
    2.49  and all the rest of the
    2.50  <a href="http://lists.w3.org/Archives/Public/www-style/">www-style</a> community.
     3.1 --- a/css-transitions/Overview.html	Mon May 06 17:28:32 2013 -0700
     3.2 +++ b/css-transitions/Overview.html	Mon May 06 17:32:22 2013 -0700
     3.3 @@ -1094,11 +1094,11 @@
     3.4          id=TransitionEventInit>TransitionEventInit</dfn> : <a class=external
     3.5          href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#eventinit">EventInit</a> {
     3.6      DOMString <a
     3.7 -        href="#Events-TransitionEvent-propertyName">propertyName</a>;
     3.8 +        href="#Events-TransitionEvent-propertyName">propertyName</a> = "";
     3.9      float <a
    3.10 -        href="#Events-TransitionEvent-elapsedTime">elapsedTime</a>;
    3.11 +        href="#Events-TransitionEvent-elapsedTime">elapsedTime</a> = 0.0;
    3.12      DOMString <a
    3.13 -        href="#Events-TransitionEvent-pseudoElement">pseudoElement</a>;
    3.14 +        href="#Events-TransitionEvent-pseudoElement">pseudoElement</a> = "";
    3.15    }
    3.16    </pre>
    3.17        </div>
    3.18 @@ -1112,9 +1112,7 @@
    3.19          title="TransitionEvent::propertyName">propertyName</dfn></code> of
    3.20          type <code>DOMString</code>, readonly
    3.21  
    3.22 -       <dd> The name of the CSS property associated with the transition. When
    3.23 -        an event is created the attribute must be initialized to the empty
    3.24 -        string.
    3.25 +       <dd> The name of the CSS property associated with the transition.
    3.26        </dl>
    3.27  
    3.28        <dl>
    3.29 @@ -1126,8 +1124,7 @@
    3.30         <dd> The amount of time the transition has been running, in seconds,
    3.31          when this event fired. Note that this value is not affected by the
    3.32          value of <a href="#transition-delay"><code
    3.33 -        class=property>transition-delay</code></a>. When an event is created
    3.34 -        the attribute must be initialized to zero.
    3.35 +        class=property>transition-delay</code></a>.
    3.36        </dl>
    3.37  
    3.38        <dl>
    3.39 @@ -1140,8 +1137,7 @@
    3.40          which the transition occured (in which case the target of the event
    3.41          is that pseudo-element's corresponding element), or the empty string
    3.42          if the transition occurred on an element (which means the target of
    3.43 -        the event is that element). When an event is created the attribute
    3.44 -        must be initialized to the empty string.
    3.45 +        the event is that element).
    3.46        </dl>
    3.47      </dl>
    3.48  
    3.49 @@ -1610,8 +1606,8 @@
    3.50    <h2 id=acknowledgments><span class=secno>8. </span>Acknowledgments</h2>
    3.51  
    3.52    <p>Thanks especially to the feedback from Tab Atkins, Carine Bournez, Aryeh
    3.53 -   Gregor, Vincent Hardy, Cameron McCormack, Alex Mogilevsky, and all the
    3.54 -   rest of the <a
    3.55 +   Gregor, Vincent Hardy, Anne van Kesteren, Cameron McCormack, Alex
    3.56 +   Mogilevsky, and all the rest of the <a
    3.57     href="http://lists.w3.org/Archives/Public/www-style/">www-style</a>
    3.58     community.
    3.59  
     4.1 --- a/css-transitions/Overview.src.html	Mon May 06 17:28:32 2013 -0700
     4.2 +++ b/css-transitions/Overview.src.html	Mon May 06 17:32:22 2013 -0700
     4.3 @@ -1083,9 +1083,9 @@
     4.4    };
     4.5  
     4.6    dictionary <dfn id="TransitionEventInit">TransitionEventInit</dfn> : <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#eventinit">EventInit</a> {
     4.7 -    DOMString <a href="#Events-TransitionEvent-propertyName">propertyName</a>;
     4.8 -    float <a href="#Events-TransitionEvent-elapsedTime">elapsedTime</a>;
     4.9 -    DOMString <a href="#Events-TransitionEvent-pseudoElement">pseudoElement</a>;
    4.10 +    DOMString <a href="#Events-TransitionEvent-propertyName">propertyName</a> = "";
    4.11 +    float <a href="#Events-TransitionEvent-elapsedTime">elapsedTime</a> = 0.0;
    4.12 +    DOMString <a href="#Events-TransitionEvent-pseudoElement">pseudoElement</a> = "";
    4.13    }
    4.14    </pre>
    4.15                </div>
    4.16 @@ -1100,8 +1100,6 @@
    4.17                  </dt>
    4.18                  <dd>
    4.19                    The name of the CSS property associated with the transition.
    4.20 -                  When an event is created the attribute
    4.21 -                  must be initialized to the empty string.
    4.22                  </dd>
    4.23                </dl>
    4.24                <dl>
    4.25 @@ -1110,8 +1108,6 @@
    4.26                  </dt>
    4.27                  <dd>
    4.28                    The amount of time the transition has been running, in seconds, when this event fired. Note that this value is not affected by the value of <code class="property">transition-delay</code>.
    4.29 -                  When an event is created the attribute
    4.30 -                  must be initialized to zero.
    4.31                  </dd>
    4.32                </dl>
    4.33                <dl>
    4.34 @@ -1125,8 +1121,6 @@
    4.35                    pseudo-element's corresponding element), or the empty
    4.36                    string if the transition occurred on an element (which
    4.37                    means the target of the event is that element).
    4.38 -                  When an event is created the attribute
    4.39 -                  must be initialized to the empty string.
    4.40                  </dd>
    4.41                </dl>
    4.42              </dd>
    4.43 @@ -1550,6 +1544,7 @@
    4.44  Carine Bournez,
    4.45  Aryeh Gregor,
    4.46  Vincent Hardy,
    4.47 +Anne van Kesteren,
    4.48  Cameron McCormack,
    4.49  Alex Mogilevsky,
    4.50  and all the rest of the

mercurial