<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>152504</bug_id>
          
          <creation_ts>2015-12-22 08:52:39 -0800</creation_ts>
          <short_desc>Pausing not showing current frame, when multiple animations are defined for same CSS selector - Safari only</short_desc>
          <delta_ts>2023-05-10 10:36:23 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Animations</component>
          <version>Safari 9</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.10</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Givanildo Dantas Alves">mrgiba</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>graouts</cc>
    
    <cc>mrgiba</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1150892</commentid>
    <comment_count>0</comment_count>
    <who name="Givanildo Dantas Alves">mrgiba</who>
    <bug_when>2015-12-22 08:52:39 -0800</bug_when>
    <thetext>Define two or more animation names for the same CSS selector, making sure the delay for each animation is higher than the duration of the previous animations

When the series of animations start, a pause always displays the last frame of the last animation, rather than the current frame of the current animation


A running example that surfaces the issue, having a series of three animations to change the background color

https://jsfiddle.net/mrgiba/qtco0dcr/


According to the CSS Animation specification (http://www.w3schools.com/css/css3_animations.asp), an animation that didn&apos;t start should not have any effect in the screen:

&quot;An animation does not affect the computed value before the application of the animation, before the animation delay has expired, and after the end of the animation.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1151120</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2015-12-23 12:21:42 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; Define two or more animation names for the same CSS selector, making sure
&gt; the delay for each animation is higher than the duration of the previous
&gt; animations
&gt; 
&gt; When the series of animations start, a pause always displays the last frame
&gt; of the last animation, rather than the current frame of the current animation
&gt; 
&gt; 
&gt; A running example that surfaces the issue, having a series of three
&gt; animations to change the background color
&gt; 
&gt; https://jsfiddle.net/mrgiba/qtco0dcr/

I can reproduce, thanks the test case.

&gt; According to the CSS Animation specification
&gt; (http://www.w3schools.com/css/css3_animations.asp), an animation that didn&apos;t

w3schools.com :|</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1151122</commentid>
    <comment_count>2</comment_count>
    <who name="Givanildo Dantas Alves">mrgiba</who>
    <bug_when>2015-12-23 12:26:55 -0800</bug_when>
    <thetext>Wrong link to CSS animations spec...

The correct one is http://www.w3.org/TR/css3-animations/

My appologies</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1227785</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2016-09-08 14:00:47 -0700</bug_when>
    <thetext>&lt;rdar://problem/28213692&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1235702</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2016-10-01 21:32:25 -0700</bug_when>
    <thetext>Trivially, this is just about pausing an animation that hasn&apos;t started yet (pause before the delay time).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1235705</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2016-10-01 21:57:06 -0700</bug_when>
    <thetext>In AnimationBase::getElapsedTime() we have to handle the case where m_startTime == 0 but m_pauseTime is non-zero.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1954373</commentid>
    <comment_count>6</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2023-05-10 10:36:23 -0700</bug_when>
    <thetext>This now behaves as expected.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>