Skip to content

Commit 039c3d1

Browse files
committed
[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.
1 parent 64f2162 commit 039c3d1

4 files changed

Lines changed: 52 additions & 33 deletions

File tree

css-animations/Overview.html

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
<head>
55
<title>CSS Animations</title>
66
<!--
7-
<link href="http://purl.org/dc/terms/" rel="schema.dc">
8-
<link href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright" rel="dc.rights">
7+
<link href="http://purl.org/dc/terms/" rel="schema.dcterms">
8+
<link href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright" rel="dcterms.rights">
99
-->
1010

11-
<meta content="CSS Animations" name=dc.title>
12-
<meta content=text name=dc.type>
13-
<meta content=2013-03-29 name=dc.date>
14-
<meta content="L. David Baron" name=dc.creator>
15-
<meta content=W3C name=dc.publisher>
11+
<meta content="CSS Animations" name=dcterms.title>
12+
<meta content=text name=dcterms.type>
13+
<meta content=2013-05-06 name=dcterms.date>
14+
<meta content="L. David Baron" name=dcterms.creator>
15+
<meta content=W3C name=dcterms.publisher>
1616
<meta content="http://dev.w3.org/csswg/css3-animations/"
17-
name=dc.identifier>
17+
name=dcterms.identifier>
1818
<meta content="text/html; charset=utf-8" http-equiv=Content-Type>
1919
<link href="../default.css" rel=stylesheet type="text/css">
2020
<style type="text/css">
@@ -30,7 +30,7 @@
3030

3131
<h1>CSS Animations</h1>
3232

33-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 29 March 2013</h2>
33+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 6 May 2013</h2>
3434

3535
<dl>
3636
<dt>This version:
@@ -1539,7 +1539,8 @@ <h4 id=AnimationEvent-attributes><span class=secno>5.1.2. </span>
15391539

15401540
<dd> The value of the ‘<a href="#animation-name"><code
15411541
class=property>animation-name</code></a>’ property of the animation
1542-
that fired the event.
1542+
that fired the event. When an event is created the attribute must be
1543+
initialized to the empty string.
15431544

15441545
<dt><code><dfn id=AnimationEvent-elapsedTime>elapsedTime</dfn></code> of
15451546
type <code>float</code>, readonly
@@ -1551,7 +1552,8 @@ <h4 id=AnimationEvent-attributes><span class=secno>5.1.2. </span>
15511552
class=property>animation-delay</code></a>’, in which case the event
15521553
will be fired with an <a
15531554
href="#AnimationEvent-elapsedTime"><code>elapsedTime</code></a> of (-1 *
1554-
delay).
1555+
delay). When an event is created the attribute must be initialized to
1556+
zero.
15551557

15561558
<dt><code><dfn id=AnimationEvent-pseudoElement>pseudoElement</dfn></code>
15571559
of type <code>DOMString</code>, readonly
@@ -1560,12 +1562,13 @@ <h4 id=AnimationEvent-attributes><span class=secno>5.1.2. </span>
15601562
which the animation runs (in which case the target of the event is that
15611563
pseudo-element's corresponding element), or the empty string if the
15621564
animation runs on an element (which means the target of the event is that
1563-
element).
1565+
element). When an event is created the attribute must be initialized to
1566+
the empty string.
15641567
</dl>
15651568

15661569
<p> <code id=AnimationEvent-constructor>AnimationEvent(type,
15671570
animationEventInitDict)</code> is an <a class=external
1568-
href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-event-constructor">event
1571+
href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#constructing-events">event
15691572
constructor</a>.
15701573

15711574
<h3 id=AnimationEvent-types><span class=secno>5.2. </span> Types of <a
@@ -1788,7 +1791,7 @@ <h3 class=no-num id=normative-references>Normative references</h3>
17881791
<!-- Sorted by label -->
17891792

17901793
<dl class=bibliography>
1791-
<dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
1794+
<dd style="display: none"><!-- keeps the doc valid if the DL is empty -->
17921795
<!---->
17931796

17941797
<dt id=CSS21>[CSS21]
@@ -1818,7 +1821,7 @@ <h3 class=no-num id=other-references>Other references</h3>
18181821
<!-- Sorted by label -->
18191822

18201823
<dl class=bibliography>
1821-
<dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
1824+
<dd style="display: none"><!-- keeps the doc valid if the DL is empty -->
18221825
<!---->
18231826

18241827
<dt id=CSS3VAL>[CSS3VAL]

css-animations/Overview.src.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,8 @@ <h4 id='AnimationEvent-attributes'>
11161116
<dt><code><dfn id='AnimationEvent-animationName'>animationName</dfn></code> of type <code>DOMString</code>, readonly
11171117
<dd>
11181118
The value of the 'animation-name' property of the animation that fired the event.
1119+
When an event is created the attribute
1120+
must be initialized to the empty string.
11191121

11201122
<dt><code><dfn id='AnimationEvent-elapsedTime'>elapsedTime</dfn></code> of type <code>float</code>, readonly
11211123
<dd>
@@ -1126,19 +1128,23 @@ <h4 id='AnimationEvent-attributes'>
11261128
For an "animationstart" event,
11271129
the elapsedTime is zero unless there was a negative value for 'animation-delay',
11281130
in which case the event will be fired with an <code>elapsedTime</code> of (-1 * delay).
1131+
When an event is created the attribute
1132+
must be initialized to zero.
11291133

11301134
<dt><code><dfn id='AnimationEvent-pseudoElement'>pseudoElement</dfn></code> of type <code>DOMString</code>, readonly
11311135
<dd>
11321136
The name (beginning with two colons) of the CSS pseudo-element on
11331137
which the animation runs (in which case the target of the event
11341138
is that pseudo-element's corresponding element), or the empty string
11351139
if the animation runs on an element (which means the target of the event
1136-
is that element).
1140+
is that element).
1141+
When an event is created the attribute
1142+
must be initialized to the empty string.
11371143
</dl>
11381144

11391145
<p>
11401146
<code id="AnimationEvent-constructor">AnimationEvent(type, animationEventInitDict)</code>
1141-
is an <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-event-constructor">event constructor</a>.
1147+
is an <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#constructing-events">event constructor</a>.
11421148

11431149
<h3 id='AnimationEvent-types'>
11441150
Types of <code>AnimationEvent</code></h3>

css-transitions/Overview.html

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
<head profile="http://dublincore.org/documents/2008/08/04/dc-html/ ">
66
<title>CSS Transitions</title>
77

8-
<link href="http://purl.org/dc/terms/" rel=schema.dc>
8+
<link href="http://purl.org/dc/terms/" rel=schema.dcterms>
99
<link href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright"
10-
rel=dc.rights>
11-
<meta content="CSS Transitions" name=dc.title>
12-
<meta content=text name=dc.type>
13-
<meta content=2013-03-29 name=dc.date>
14-
<meta content="L. David Baron" name=dc.creator>
15-
<meta content=W3C name=dc.publisher>
10+
rel=dcterms.rights>
11+
<meta content="CSS Transitions" name=dcterms.title>
12+
<meta content=text name=dcterms.type>
13+
<meta content=2013-05-06 name=dcterms.date>
14+
<meta content="L. David Baron" name=dcterms.creator>
15+
<meta content=W3C name=dcterms.publisher>
1616
<meta content="http://dev.w3.org/csswg/css3-transitions/"
17-
name=dc.identifier>
17+
name=dcterms.identifier>
1818
<meta content="text/html; charset=utf-8" http-equiv=Content-Type>
1919
<link href="../default.css" rel=stylesheet type="text/css">
2020
<style type="text/css">
@@ -37,7 +37,7 @@
3737

3838
<h1>CSS Transitions</h1>
3939

40-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 29 March 2013</h2>
40+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 6 May 2013</h2>
4141

4242
<dl>
4343
<dt>This version:
@@ -1112,7 +1112,9 @@ <h2 id=transition-events><span class=secno>5. </span><a
11121112
title="TransitionEvent::propertyName">propertyName</dfn></code> of
11131113
type <code>DOMString</code>, readonly
11141114

1115-
<dd> The name of the CSS property associated with the transition.
1115+
<dd> The name of the CSS property associated with the transition. When
1116+
an event is created the attribute must be initialized to the empty
1117+
string.
11161118
</dl>
11171119

11181120
<dl>
@@ -1124,7 +1126,8 @@ <h2 id=transition-events><span class=secno>5. </span><a
11241126
<dd> The amount of time the transition has been running, in seconds,
11251127
when this event fired. Note that this value is not affected by the
11261128
value of <a href="#transition-delay"><code
1127-
class=property>transition-delay</code></a>.
1129+
class=property>transition-delay</code></a>. When an event is created
1130+
the attribute must be initialized to zero.
11281131
</dl>
11291132

11301133
<dl>
@@ -1137,13 +1140,14 @@ <h2 id=transition-events><span class=secno>5. </span><a
11371140
which the transition occured (in which case the target of the event
11381141
is that pseudo-element's corresponding element), or the empty string
11391142
if the transition occurred on an element (which means the target of
1140-
the event is that element).
1143+
the event is that element). When an event is created the attribute
1144+
must be initialized to the empty string.
11411145
</dl>
11421146
</dl>
11431147

11441148
<p> <code id=TransitionEvent-constructor>TransitionEvent(type,
11451149
transitionEventInitDict)</code> is an <a class=external
1146-
href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-event-constructor">event
1150+
href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#constructing-events">event
11471151
constructor</a>.
11481152
</dl>
11491153

@@ -1618,7 +1622,7 @@ <h3 class=no-num id=normative-references>Normative references</h3>
16181622
<!-- Sorted by label -->
16191623

16201624
<dl class=bibliography>
1621-
<dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
1625+
<dd style="display: none"><!-- keeps the doc valid if the DL is empty -->
16221626
<!---->
16231627
</dl>
16241628
<!--end-normative-->
@@ -1628,7 +1632,7 @@ <h3 class=no-num id=other-references>Other references</h3>
16281632
<!-- Sorted by label -->
16291633

16301634
<dl class=bibliography>
1631-
<dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
1635+
<dd style="display: none"><!-- keeps the doc valid if the DL is empty -->
16321636
<!---->
16331637

16341638
<dt id=CSS21>[CSS21]

css-transitions/Overview.src.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,8 @@ <h2 id="transition-events"><a id="transition-events-">
11001100
</dt>
11011101
<dd>
11021102
The name of the CSS property associated with the transition.
1103+
When an event is created the attribute
1104+
must be initialized to the empty string.
11031105
</dd>
11041106
</dl>
11051107
<dl>
@@ -1108,6 +1110,8 @@ <h2 id="transition-events"><a id="transition-events-">
11081110
</dt>
11091111
<dd>
11101112
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>.
1113+
When an event is created the attribute
1114+
must be initialized to zero.
11111115
</dd>
11121116
</dl>
11131117
<dl>
@@ -1121,13 +1125,15 @@ <h2 id="transition-events"><a id="transition-events-">
11211125
pseudo-element's corresponding element), or the empty
11221126
string if the transition occurred on an element (which
11231127
means the target of the event is that element).
1128+
When an event is created the attribute
1129+
must be initialized to the empty string.
11241130
</dd>
11251131
</dl>
11261132
</dd>
11271133
</dl>
11281134
<p>
11291135
<code id="TransitionEvent-constructor">TransitionEvent(type, transitionEventInitDict)</code>
1130-
is an <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-event-constructor">event constructor</a>.
1136+
is an <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#constructing-events">event constructor</a>.
11311137
</p>
11321138
</dd>
11331139
</dl>

0 commit comments

Comments
 (0)