Skip to content

Commit 7a1261f

Browse files
author
Sylvain Galineau
committed
[css3-animations] Define effect of display:none on animations (bug 14785)
1 parent 48f124b commit 7a1261f

2 files changed

Lines changed: 24 additions & 5 deletions

File tree

css3-animations/Overview.html

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
<meta content="CSS Animations" name=dcterms.title>
1212
<meta content=text name=dcterms.type>
13-
<meta content=2012-12-17 name=dcterms.issued>
13+
<meta content=2012-12-18 name=dcterms.issued>
1414
<meta content="http://dev.w3.org/csswg/css3-animations/"
1515
name=dcterms.creator>
1616
<meta content=W3C name=dcterms.publisher>
17-
<meta content="http://www.w3.org/TR/2012/ED-css3-animations-20121217/"
17+
<meta content="http://www.w3.org/TR/2012/ED-css3-animations-20121218/"
1818
name=dcterms.identifier>
1919
<meta content="text/html; charset=utf-8" http-equiv=Content-Type>
2020
<link href="../default.css" rel=stylesheet type="text/css">
@@ -31,15 +31,15 @@
3131

3232
<h1>CSS Animations</h1>
3333

34-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 17 December
34+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 18 December
3535
2012</h2>
3636

3737
<dl>
3838
<dt>This version:
3939

4040
<dd><a
41-
href="http://www.w3.org/TR/2012/ED-css3-animations-20121217/">http://dev.w3.org/csswg/css3-animations/</a>
42-
<!--http://www.w3.org/TR/2012/WD-css3-animations-20121217/-->
41+
href="http://www.w3.org/TR/2012/ED-css3-animations-20121218/">http://dev.w3.org/csswg/css3-animations/</a>
42+
<!--http://www.w3.org/TR/2012/WD-css3-animations-20121218/-->
4343

4444
<dt>Latest version:
4545

@@ -389,6 +389,16 @@ <h2 id=animations><span class=secno>2. </span> Animations</h2>
389389
total of ten iterations).
390390
</div>
391391

392+
<p> Setting the display property to ‘<code class=property>none</code>
393+
will terminate any running animation applied to the element and its
394+
descendants. If an element has a display of ‘<code
395+
class=property>none</code>’, updating display to a value other than
396+
<code class=property>none</code>’ will start all animations applied
397+
to the element by the ‘<a href="#animation-name"><code
398+
class=property>animation-name</code></a>’ property, as well as all
399+
animations applied to descendants with display other than ‘<code
400+
class=property>none</code>’.
401+
392402
<h2 id=keyframes><span class=secno>3. </span> Keyframes</h2>
393403

394404
<p> Keyframes are used to specify the values for the animating properties

css3-animations/Overview.src.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,15 @@ <h2 id="animations">
219219
(for a total of ten iterations).
220220
</div>
221221

222+
<p>
223+
Setting the display property to 'none' will terminate any running animation
224+
applied to the element and its descendants.
225+
226+
If an element has a display of 'none', updating display to a value other than 'none'
227+
will start all animations applied to the element by the 'animation-name' property,
228+
as well as all animations applied to descendants with display other than 'none'.
229+
</p>
230+
222231
<h2 id="keyframes">
223232
Keyframes</h2>
224233
<p>

0 commit comments

Comments
 (0)