8000 [css-animations][css-transitions] Actually, since we don't have init*… · simonwuelker/csswg-drafts@7e6bd98 · GitHub
Skip to content

Commit 7e6bd98

Browse files
committed
[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.
1 parent f3015bd commit 7e6bd98

4 files changed

Lines changed: 24 additions & 41 deletions

File tree

css-animations/Overview.html

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,11 +1521,11 @@ <h4 id=AnimationEvent-IDL><span class=secno>5.1.1. </span> IDL Definition</h4>
15211521
id=AnimationEventInit>AnimationEventInit</dfn> : <a class=external
15221522
href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#eventinit">EventInit</a> {
15231523
DOMString <span
1524-
title=AnimationEventInit-animationName>animationName</span>;
1524+
title=AnimationEventInit-animationName>animationName</span> = "";
15251525
float <span
1526-
title=AnimationEventInit-loaded>elapsedTime</span>;
1526+
title=AnimationEventInit-loaded>elapsedTime</span> = 0.0;
15271527
DOMString <span
1528-
title=AnimationEventInit-pseudoElement>pseudoElement</span>;
1528+
title=AnimationEventInit-pseudoElement>pseudoElement</span> = "";
15291529
}
15301530

15311531
</pre>
@@ -1539,8 +1539,7 @@ <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. When an event is created the attribute must be
1543-
initialized to the empty string.
1542+
that fired the event.
15441543

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

15581556
<dt><code><dfn id=AnimationEvent-pseudoElement>pseudoElement</dfn></code>
15591557
of type <code>DOMString</code>, readonly
@@ -1562,8 +1560,7 @@ <h4 id=AnimationEvent-attributes><span class=secno>5.1.2. </span>
15621560
which the animation runs (in which case the target of the event is that
15631561
pseudo-element's corresponding element), or the empty string if the
15641562
animation runs on an element (which means the target of the event is that
1565-
element). When an event is created the attribute must be initialized to
1566-
the empty string.
1563+
element).
15671564
</dl>
15681565

15691566
<p> <code id=AnimationEvent-constructor>AnimationEvent(type,
@@ -1779,8 +1776,8 @@ <h4 id=CSSKeyframesRule-findRule><span class=secno>6.3.5. </span> The
17791776

17801777
<h2 id=acknowledgments><span class=secno>7. </span>Acknowledgments</h2>
17811778

1782-
<p>Thanks especially to the feedback from Tab Atkins, Carine Bournez,
1783-
Estelle Weyl, and all the rest of the <a
1779+
<p>Thanks especially to the feedback from Tab Atkins, Carine Bournez, Anne
1780+
van Kesteren, Estelle Weyl, and all the rest of the <a
17841781
href="http://lists.w3.org/Archives/Public/www-style/">www-style</a>
17851782
community.
17861783

css-animations/Overview.src.html

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,9 +1101,9 @@ <h4 id='AnimationEvent-IDL'>
11011101
};
11021102

11031103
dictionary <dfn id="AnimationEventInit">AnimationEventInit</dfn> : <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#eventinit">EventInit</a> {
1104-
DOMString <span title="AnimationEventInit-animationName">animationName</span>;
1105-
float <span title="AnimationEventInit-loaded">elapsedTime</span>;
1106-
DOMString <span title="AnimationEventInit-pseudoElement">pseudoElement</span>;
1104+
DOMString <span title="AnimationEventInit-animationName">animationName</span> = "";
1105+
float <span title="AnimationEventInit-loaded">elapsedTime</span> = 0.0;
1106+
DOMString <span title="AnimationEventInit-pseudoElement">pseudoElement</span> = "";
11071107
}
11081108

11091109
</pre>
@@ -1116,8 +1116,6 @@ <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.
11211119

11221120
<dt><code><dfn id='AnimationEvent-elapsedTime'>elapsedTime</dfn></code> of type <code>float</code>, readonly
11231121
<dd>
@@ -1128,8 +1126,6 @@ <h4 id='AnimationEvent-attributes'>
11281126
For an "animationstart" event,
11291127
the elapsedTime is zero unless there was a negative value for 'animation-delay',
11301128
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.
11331129

11341130
<dt><code><dfn id='AnimationEvent-pseudoElement'>pseudoElement</dfn></code> of type <code>DOMString</code>, readonly
11351131
<dd>
@@ -1138,8 +1134,6 @@ <h4 id='AnimationEvent-attributes'>
11381134
is that pseudo-element's corresponding element), or the empty string
11391135
if the animation runs on an element (which means the target of the event
11401136
is that element).
1141-
When an event is created the attribute
1142-
must be initialized to the empty string.
11431137
</dl>
11441138

11451139
<p>
@@ -1371,6 +1365,7 @@ <h2 id="acknowledgments">Acknowledgments</h2>
13711365
<p>Thanks especially to the feedback from
13721366
Tab Atkins,
13731367
Carine Bournez,
1368+
Anne van Kesteren,
13741369
Estelle Weyl,
13751370
and all the rest of the
13761371
<a href="http://lists.w3.org/Archives/Public/www-style/">www-style</a> community.

css-transitions/Overview.html

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,11 +1094,11 @@ <h2 id=transition-events><span class=secno>5. </span><a
10941094
id=TransitionEventInit>TransitionEventInit</dfn> : <a class=external
10951095
href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#eventinit">EventInit</a> {
10961096
DOMString <a
1097-
href="#Events-TransitionEvent-propertyName">propertyName</a>;
1097+
href="#Events-TransitionEvent-propertyName">propertyName</a> = "";
10981098
float <a
1099-
href="#Events-TransitionEvent-elapsedTime">elapsedTime</a>;
1099+
href="#Events-TransitionEvent-elapsedTime">elapsedTime</a> = 0.0;
11001100
DOMString <a
1101-
href="#Events-TransitionEvent-pseudoElement">pseudoElement</a>;
1101+
href="#Events-TransitionEvent-pseudoElement">pseudoElement</a> = "";
11021102
}
11031103
</pre>
11041104
</div>
@@ -1112,9 +1112,7 @@ <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. When
1116-
an event is created the attribute must be initialized to the empty
1117-
string.
1115+
<dd> The name of the CSS property associated with the transition.
11181116
</dl>
11191117

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

11331130
<dl>
@@ -1140,8 +1137,7 @@ <h2 id=transition-events><span class=secno>5. </span><a
11401137
which the transition occured (in which case the target of the event
11411138
is that pseudo-element's corresponding element), or the empty string
11421139
if the transition occurred on an element (which means the target of
1143-
the event is that element). When an event is created the attribute
1144-
must be initialized to the empty string.
1140+
the event is that element).
11451141
</dl>
11461142
</dl>
11471143

@@ -1610,8 +1606,8 @@ <h3 id=animatable-svg><span class=secno>7.2. </span><a
16101606
<h2 id=acknowledgments><span class=secno>8. </span>Acknowledgments</h2>
16111607

16121608
<p>Thanks especially to the feedback from Tab Atkins, Carine Bournez, Aryeh
1613-
Gregor, Vincent Hardy, Cameron McCormack, Alex Mogilevsky, and all the
1614-
rest of the <a
1609+
Gregor, Vincent Hardy, Anne van Kesteren, Cameron McCormack, Alex
1610+
Mogilevsky, and all the rest of the <a
16151611
href="http://lists.w3.org/Archives/Public/www-style/">www-style</a>
16161612
community.
16171613

css-transitions/Overview.src.html

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,9 +1083,9 @@ <h2 id="transition-events"><a id="transition-events-">
10831083
};
10841084

10851085
dictionary <dfn id="TransitionEventInit">TransitionEventInit</dfn> : <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#eventinit">EventInit</a> {
1086-
DOMString <a href="#Events-TransitionEvent-propertyName">propertyName</a>;
1087-
float <a href="#Events-TransitionEvent-elapsedTime">elapsedTime</a>;
1088-
DOMString <a href="#Events-TransitionEvent-pseudoElement">pseudoElement</a>;
1086+
DOMString <a href="#Events-TransitionEvent-propertyName">propertyName</a> = "";
1087+
float <a href="#Events-TransitionEvent-elapsedTime">elapsedTime</a> = 0.0;
1088+
DOMString <a href="#Events-TransitionEvent-pseudoElement">pseudoElement</a> = "";
10891089
}
10901090
</pre>
10911091
</div>
@@ -1100,8 +1100,6 @@ <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.
11051103
</dd>
11061104
</dl>
11071105
<dl>
@@ -1110,8 +1108,6 @@ <h2 id="transition-events"><a id="transition-events-">
11101108
</dt>
11111109
<dd>
11121110
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.
11151111
</dd>
11161112
</dl>
11171113
<dl>
@@ -1125,8 +1121,6 @@ <h2 id="transition-events"><a id="transition-events-">
11251121
pseudo-element's corresponding element), or the empty
11261122
string if the transition occurred on an element (which
11271123
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.
11301124
</dd>
11311125
</dl>
11321126
</dd>
@@ -1550,6 +1544,7 @@ <h2 id="acknowledgments">Acknowledgments</h2>
15501544
Carine Bournez,
15511545
Aryeh Gregor,
15521546
Vincent Hardy,
1547+
Anne van Kesteren,
15531548
Cameron McCormack,
15541549
Alex Mogilevsky,
15551550
and all the rest of the

0 commit comments

Comments
 (0)