Skip to content

Commit 8b4f2b1

Browse files
author
Sylvain Galineau
committed
Make negative transition-duration and animation-duration values invalid (Bug 16806)
1 parent 6cfdf04 commit 8b4f2b1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

css3-animations/Overview.src.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,8 @@ <h3 id="animation-duration-property">
548548
<p>
549549
The initial value is ''0s'',
550550
meaning that the animation takes no time.
551-
A negative value for 'animation-duration' is treated as ''0s''.
552-
In this case 'animation-fill-mode' still applies,
551+
A negative value for 'animation-duration' renders the declaration invalid.
552+
When the duration is ''0s'' 'animation-fill-mode' still applies,
553553
so an animation that fills backwards
554554
will show the value of the 0% keyframe during any delay period,
555555
and an animation that fills forwards will retain the value specified at the 100% keyframe,

css3-transitions/Overview.src.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ <h3 id=transition-duration-property><a id=the-transition-duration-property->
373373
</tbody>
374374
</table>
375375
<p>
376-
This property specifies how long the transition from the old value to the new value should take. By default the value is '0s', meaning that the transition is immediate (i.e. there will be no animation). A negative value for <code class="property">transition-duration</code> is treated as '0s'.
376+
This property specifies how long the transition from the old value to the new value should take. By default the value is '0s', meaning that the transition is immediate (i.e. there will be no animation). A negative value for <code class="property">transition-duration</code> renders the declaration invalid.
377377
</p>
378378

379379
<!-- =======================================================================================================

0 commit comments

Comments
 (0)