Commit 05a40ac
committed
[css-timing] Drop before flag from frames() timing function
The before flag was added primarily for step-start because at input progress = 0
the output should be the top of the step but during the delay phase it should be
the bottom of the step.
As an extension of that, we said that if you used the iterationStart property to
offset the beginning of the animation such that it lines up exactly with one of
those steps, then we should behave in the same way: i.e. bottom of the step
during the delay, top of the step otherwise.
Original discussion:
https://lists.w3.org/Archives/Public/public-fx/2013OctDec/0233.html
Subsequent discussion:
https://old.etherpad-mozilla.org/yhmUQAEfpo
Issue:
w3c/web-animations#16
Originally I applied the same behavior to frame timing functions. However, they
don't have the same issue steps occurring at progress=0. Furthermore, for the
iterationStart case, suppose you have frames(4) and set iterationStart to 0.25,
then I think during the delay phase you actually do expect that animation to
show the second frame. That is, you don't want the step down behavior. Instead
you're effectively saying, "I've asked for 4 frames but I want to start from the
second frame (presumably even when I'm filing."
So I've dropped the before flag behavior for the frames() timing function.1 parent d67c7d5 commit 05a40ac
1 file changed
Lines changed: 1 addition & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
361 | | - | |
| 360 | + | |
362 | 361 | | |
363 | 362 | | |
364 | 363 | | |
365 | 364 | | |
366 | 365 | | |
367 | 366 | | |
368 | 367 | | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | 368 | | |
379 | 369 | | |
380 | 370 | | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | 371 | | |
385 | 372 | | |
386 | 373 | | |
| |||
0 commit comments