<?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>26850</bug_id>
          
          <creation_ts>2009-06-30 11:36:21 -0700</creation_ts>
          <short_desc>CSS Animations need hooks for controls: pause/play, scrubbing</short_desc>
          <delta_ts>2011-08-25 18:08:00 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>54151</dup_id>
          
          <bug_file_loc>http://dev.w3.org/csswg/css3-animations/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Andy Matuschak">andy</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cmarrin</cc>
    
    <cc>dino</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>129121</commentid>
    <comment_count>0</comment_count>
    <who name="Andy Matuschak">andy</who>
    <bug_when>2009-06-30 11:36:21 -0700</bug_when>
    <thetext>The new CSS animation functionality&apos;s great, but they&apos;re a little limited. I request:

1. The ability to pause and play animations. The animation-play-state property is deprecated (and unimplemented on the desktop), and it suggests that clients could get the computed state, remove the animation, and then set the style.

I implemented this, but it resulted in the animation appearing to flick backwards a few frames when paused, since it had proceeded somewhat in another thread after I&apos;d computed the style but before I&apos;d removed the animation. So this is not a workable alternative. And for what it&apos;s worth, that&apos;s a pretty ugly workaround.

2. Hooks for scrubbing. Specifically, to implement a decent scrubber, the client must be able to jump the animation to a particular point and query how far it has progressed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129207</commentid>
    <comment_count>1</comment_count>
    <who name="Andy Matuschak">andy</who>
    <bug_when>2009-06-30 16:09:23 -0700</bug_when>
    <thetext>A little more detail, as discussed in #webkit:

- If animation-play-state is to be left after all, it just needs to be implemented on the desktop, then the first part is resolved.

- The scrubbing hooks need a little care to account for the fact that a given element may have many animations applied to it. For a given (element, animation-name) tuple, I want to be able to get and set progress percentage or time. Time is a little interesting: while it makes intuitive sense (at least as relates to the percentage) for time to be relative to the animation&apos;s beginning, it might make sense to provide a variant which works in *global time*, which would count the animation-delay property time. That way, a scrubber moving from 0 to 10 seconds could pass the same value for all animations and get the expected results, without having to consider each animation&apos;s delay.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>457316</commentid>
    <comment_count>2</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2011-08-25 18:08:00 -0700</bug_when>
    <thetext>I didn&apos;t see this bug when I started on 54151. It&apos;s got more info so using that as the original even though this is older.

*** This bug has been marked as a duplicate of bug 54151 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>