Bug 186930 - [Web Animations] Accelerated animations don't respect a positive delay value
Summary: [Web Animations] Accelerated animations don't respect a positive delay value
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Animations (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.13
: P2 Normal
Assignee: Antoine Quint
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-06-22 10:36 PDT by dwilson1
Modified: 2018-09-26 03:00 PDT (History)
3 users (show)

See Also:


Attachments
Patch (7.79 KB, patch)
2018-07-26 07:08 PDT, Antoine Quint
dino: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dwilson1 2018-06-22 10:36:06 PDT
Animations specified with a positive delay in its Timing options do not visually start animating. It seems undefined, zero, and negative delays are all working as intended.

Example:
https://codepen.io/danwilson/pen/vrjPGx/?editors=0010

In the example, the second row circles are the only ones with positive delays specified and should be animating as well.

Steps to Reproduce:
1. Setup an animation such as:

element.animate([ { transform: 'scale(1)' }, { transform: 'scale(.5)' } ], {
  duration: 1000,
  delay: 500
});


Expected Results:
After 500ms, the element will start to scale to .5 over the course of 1000ms

Actual Results:
No animation occurs, and the element stays at scale(1).

Build: Release 59 (Safari 12.0, WebKit 13606.1.21)
Comment 1 Radar WebKit Bug Importer 2018-06-22 23:12:38 PDT
<rdar://problem/41393393>
Comment 2 Antoine Quint 2018-07-25 14:26:29 PDT
This is specific to accelerated animations.
Comment 3 Antoine Quint 2018-07-26 07:08:51 PDT
Created attachment 345841 [details]
Patch
Comment 4 Antoine Quint 2018-07-26 15:16:42 PDT
Committed r234279: <https://trac.webkit.org/changeset/234279>