[css-transitions][css-animations] Define initial values of event properties. (Using the initializers in the init dict is not sufficient because of CreateEvent.) Also fix link to DOM Core.

Mon, 06 May 2013 17:23:49 -0700

author
L. David Baron <dbaron@dbaron.org>
date
Mon, 06 May 2013 17:23:49 -0700
changeset 8064
172f4f12f059
parent 8063
62769a119205
child 8065
4dd4b8ee7b62

[css-transitions][css-animations] Define initial values of event properties. (Using the initializers in the init dict is not sufficient because of CreateEvent.) Also fix link to DOM Core.

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:22:55 2013 -0700
     1.2 +++ b/css-animations/Overview.html	Mon May 06 17:23:49 2013 -0700
     1.3 @@ -4,17 +4,17 @@
     1.4   <head>
     1.5    <title>CSS Animations</title>
     1.6    <!--
     1.7 -  <link href="http://purl.org/dc/terms/" rel="schema.dc">
     1.8 -  <link href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright" rel="dc.rights">
     1.9 +  <link href="http://purl.org/dc/terms/" rel="schema.dcterms">
    1.10 +  <link href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright" rel="dcterms.rights">
    1.11    -->
    1.12  
    1.13 -  <meta content="CSS Animations" name=dc.title>
    1.14 -  <meta content=text name=dc.type>
    1.15 -  <meta content=2013-03-29 name=dc.date>
    1.16 -  <meta content="L. David Baron" name=dc.creator>
    1.17 -  <meta content=W3C name=dc.publisher>
    1.18 +  <meta content="CSS Animations" name=dcterms.title>
    1.19 +  <meta content=text name=dcterms.type>
    1.20 +  <meta content=2013-05-06 name=dcterms.date>
    1.21 +  <meta content="L. David Baron" name=dcterms.creator>
    1.22 +  <meta content=W3C name=dcterms.publisher>
    1.23    <meta content="http://dev.w3.org/csswg/css3-animations/"
    1.24 -   name=dc.identifier>
    1.25 +   name=dcterms.identifier>
    1.26    <meta content="text/html; charset=utf-8" http-equiv=Content-Type>
    1.27    <link href="../default.css" rel=stylesheet type="text/css">
    1.28    <style type="text/css">
    1.29 @@ -30,7 +30,7 @@
    1.30  
    1.31     <h1>CSS Animations</h1>
    1.32  
    1.33 -   <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 29 March 2013</h2>
    1.34 +   <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 6 May 2013</h2>
    1.35  
    1.36     <dl>
    1.37      <dt>This version:
    1.38 @@ -1539,7 +1539,8 @@
    1.39  
    1.40     <dd> The value of the ‘<a href="#animation-name"><code
    1.41      class=property>animation-name</code></a>’ property of the animation
    1.42 -    that fired the event.
    1.43 +    that fired the event. When an event is created the attribute must be
    1.44 +    initialized to the empty string.
    1.45  
    1.46     <dt><code><dfn id=AnimationEvent-elapsedTime>elapsedTime</dfn></code> of
    1.47      type <code>float</code>, readonly
    1.48 @@ -1551,7 +1552,8 @@
    1.49      class=property>animation-delay</code></a>’, in which case the event
    1.50      will be fired with an <a
    1.51      href="#AnimationEvent-elapsedTime"><code>elapsedTime</code></a> of (-1 *
    1.52 -    delay).
    1.53 +    delay). When an event is created the attribute must be initialized to
    1.54 +    zero.
    1.55  
    1.56     <dt><code><dfn id=AnimationEvent-pseudoElement>pseudoElement</dfn></code>
    1.57      of type <code>DOMString</code>, readonly
    1.58 @@ -1560,12 +1562,13 @@
    1.59      which the animation runs (in which case the target of the event is that
    1.60      pseudo-element's corresponding element), or the empty string if the
    1.61      animation runs on an element (which means the target of the event is that
    1.62 -    element).
    1.63 +    element). When an event is created the attribute must be initialized to
    1.64 +    the empty string.
    1.65    </dl>
    1.66  
    1.67    <p> <code id=AnimationEvent-constructor>AnimationEvent(type,
    1.68     animationEventInitDict)</code> is an <a class=external
    1.69 -   href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-event-constructor">event
    1.70 +   href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#constructing-events">event
    1.71     constructor</a>.
    1.72  
    1.73    <h3 id=AnimationEvent-types><span class=secno>5.2. </span> Types of <a
    1.74 @@ -1788,7 +1791,7 @@
    1.75    <!-- Sorted by label -->
    1.76  
    1.77    <dl class=bibliography>
    1.78 -   <dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
    1.79 +   <dd style="display: none"><!-- keeps the doc valid if the DL is empty -->
    1.80      <!---->
    1.81  
    1.82     <dt id=CSS21>[CSS21]
    1.83 @@ -1818,7 +1821,7 @@
    1.84    <!-- Sorted by label -->
    1.85  
    1.86    <dl class=bibliography>
    1.87 -   <dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
    1.88 +   <dd style="display: none"><!-- keeps the doc valid if the DL is empty -->
    1.89      <!---->
    1.90  
    1.91     <dt id=CSS3VAL>[CSS3VAL]
     2.1 --- a/css-animations/Overview.src.html	Mon May 06 17:22:55 2013 -0700
     2.2 +++ b/css-animations/Overview.src.html	Mon May 06 17:23:49 2013 -0700
     2.3 @@ -1116,6 +1116,8 @@
     2.4  		<dt><code><dfn id='AnimationEvent-animationName'>animationName</dfn></code> of type <code>DOMString</code>, readonly
     2.5  		<dd>
     2.6  			The value of the 'animation-name' property of the animation that fired the event.
     2.7 +			When an event is created the attribute
     2.8 +			must be initialized to the empty string.
     2.9  				
    2.10  		<dt><code><dfn id='AnimationEvent-elapsedTime'>elapsedTime</dfn></code> of type <code>float</code>, readonly
    2.11  		<dd>
    2.12 @@ -1126,6 +1128,8 @@
    2.13  			For an "animationstart" event, 
    2.14  			the elapsedTime is zero unless there was a negative value for 'animation-delay', 
    2.15  			in which case the event will be fired with an <code>elapsedTime</code> of (-1 * delay).
    2.16 +			When an event is created the attribute
    2.17 +			must be initialized to zero.
    2.18  
    2.19  		<dt><code><dfn id='AnimationEvent-pseudoElement'>pseudoElement</dfn></code> of type <code>DOMString</code>, readonly
    2.20  		<dd>
    2.21 @@ -1133,12 +1137,14 @@
    2.22  			which the animation runs (in which case the target of the event 
    2.23  			is that pseudo-element's corresponding element), or the empty string
    2.24  			if the animation runs on an element (which means the target of the event 
    2.25 -			is that element).			
    2.26 +			is that element).
    2.27 +			When an event is created the attribute
    2.28 +			must be initialized to the empty string.
    2.29  	</dl>
    2.30  
    2.31  	<p>
    2.32  		<code id="AnimationEvent-constructor">AnimationEvent(type, animationEventInitDict)</code> 
    2.33 -		is an <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-event-constructor">event constructor</a>.
    2.34 +		is an <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#constructing-events">event constructor</a>.
    2.35  						
    2.36  <h3 id='AnimationEvent-types'>
    2.37  Types of <code>AnimationEvent</code></h3>
     3.1 --- a/css-transitions/Overview.html	Mon May 06 17:22:55 2013 -0700
     3.2 +++ b/css-transitions/Overview.html	Mon May 06 17:23:49 2013 -0700
     3.3 @@ -5,16 +5,16 @@
     3.4   <head profile="http://dublincore.org/documents/2008/08/04/dc-html/ ">
     3.5    <title>CSS Transitions</title>
     3.6  
     3.7 -  <link href="http://purl.org/dc/terms/" rel=schema.dc>
     3.8 +  <link href="http://purl.org/dc/terms/" rel=schema.dcterms>
     3.9    <link href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright"
    3.10 -   rel=dc.rights>
    3.11 -  <meta content="CSS Transitions" name=dc.title>
    3.12 -  <meta content=text name=dc.type>
    3.13 -  <meta content=2013-03-29 name=dc.date>
    3.14 -  <meta content="L. David Baron" name=dc.creator>
    3.15 -  <meta content=W3C name=dc.publisher>
    3.16 +   rel=dcterms.rights>
    3.17 +  <meta content="CSS Transitions" name=dcterms.title>
    3.18 +  <meta content=text name=dcterms.type>
    3.19 +  <meta content=2013-05-06 name=dcterms.date>
    3.20 +  <meta content="L. David Baron" name=dcterms.creator>
    3.21 +  <meta content=W3C name=dcterms.publisher>
    3.22    <meta content="http://dev.w3.org/csswg/css3-transitions/"
    3.23 -   name=dc.identifier>
    3.24 +   name=dcterms.identifier>
    3.25    <meta content="text/html; charset=utf-8" http-equiv=Content-Type>
    3.26    <link href="../default.css" rel=stylesheet type="text/css">
    3.27    <style type="text/css">
    3.28 @@ -37,7 +37,7 @@
    3.29  
    3.30     <h1>CSS Transitions</h1>
    3.31  
    3.32 -   <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 29 March 2013</h2>
    3.33 +   <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 6 May 2013</h2>
    3.34  
    3.35     <dl>
    3.36      <dt>This version:
    3.37 @@ -1112,7 +1112,9 @@
    3.38          title="TransitionEvent::propertyName">propertyName</dfn></code> of
    3.39          type <code>DOMString</code>, readonly
    3.40  
    3.41 -       <dd> The name of the CSS property associated with the transition.
    3.42 +       <dd> The name of the CSS property associated with the transition. When
    3.43 +        an event is created the attribute must be initialized to the empty
    3.44 +        string.
    3.45        </dl>
    3.46  
    3.47        <dl>
    3.48 @@ -1124,7 +1126,8 @@
    3.49         <dd> The amount of time the transition has been running, in seconds,
    3.50          when this event fired. Note that this value is not affected by the
    3.51          value of <a href="#transition-delay"><code
    3.52 -        class=property>transition-delay</code></a>.
    3.53 +        class=property>transition-delay</code></a>. When an event is created
    3.54 +        the attribute must be initialized to zero.
    3.55        </dl>
    3.56  
    3.57        <dl>
    3.58 @@ -1137,13 +1140,14 @@
    3.59          which the transition occured (in which case the target of the event
    3.60          is that pseudo-element's corresponding element), or the empty string
    3.61          if the transition occurred on an element (which means the target of
    3.62 -        the event is that element).
    3.63 +        the event is that element). When an event is created the attribute
    3.64 +        must be initialized to the empty string.
    3.65        </dl>
    3.66      </dl>
    3.67  
    3.68      <p> <code id=TransitionEvent-constructor>TransitionEvent(type,
    3.69       transitionEventInitDict)</code> is an <a class=external
    3.70 -     href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-event-constructor">event
    3.71 +     href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#constructing-events">event
    3.72       constructor</a>.
    3.73    </dl>
    3.74  
    3.75 @@ -1618,7 +1622,7 @@
    3.76    <!-- Sorted by label -->
    3.77  
    3.78    <dl class=bibliography>
    3.79 -   <dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
    3.80 +   <dd style="display: none"><!-- keeps the doc valid if the DL is empty -->
    3.81      <!---->
    3.82    </dl>
    3.83    <!--end-normative-->
    3.84 @@ -1628,7 +1632,7 @@
    3.85    <!-- Sorted by label -->
    3.86  
    3.87    <dl class=bibliography>
    3.88 -   <dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
    3.89 +   <dd style="display: none"><!-- keeps the doc valid if the DL is empty -->
    3.90      <!---->
    3.91  
    3.92     <dt id=CSS21>[CSS21]
     4.1 --- a/css-transitions/Overview.src.html	Mon May 06 17:22:55 2013 -0700
     4.2 +++ b/css-transitions/Overview.src.html	Mon May 06 17:23:49 2013 -0700
     4.3 @@ -1100,6 +1100,8 @@
     4.4                  </dt>
     4.5                  <dd>
     4.6                    The name of the CSS property associated with the transition.
     4.7 +                  When an event is created the attribute
     4.8 +                  must be initialized to the empty string.
     4.9                  </dd>
    4.10                </dl>
    4.11                <dl>
    4.12 @@ -1108,6 +1110,8 @@
    4.13                  </dt>
    4.14                  <dd>
    4.15                    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.16 +                  When an event is created the attribute
    4.17 +                  must be initialized to zero.
    4.18                  </dd>
    4.19                </dl>
    4.20                <dl>
    4.21 @@ -1121,13 +1125,15 @@
    4.22                    pseudo-element's corresponding element), or the empty
    4.23                    string if the transition occurred on an element (which
    4.24                    means the target of the event is that element).
    4.25 +                  When an event is created the attribute
    4.26 +                  must be initialized to the empty string.
    4.27                  </dd>
    4.28                </dl>
    4.29              </dd>
    4.30            </dl>
    4.31            <p>
    4.32              <code id="TransitionEvent-constructor">TransitionEvent(type, transitionEventInitDict)</code>
    4.33 -            is an <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-event-constructor">event constructor</a>.
    4.34 +            is an <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#constructing-events">event constructor</a>.
    4.35            </p>
    4.36          </dd>
    4.37        </dl>

mercurial