haikuwebkit/LayoutTests/animations/fill-mode-expected.txt

18 lines
839 B
Plaintext
Raw Permalink Normal View History

2010-03-05 Dean Jackson <dino@apple.com> Reviewed by Simon Fraser and Chris Marrin. Bug 26869: Add fill modes for CSS Animations https://bugs.webkit.org/show_bug.cgi?id=26869 Tests: animations/fill-mode-removed.html animations/fill-mode-transform.html animations/fill-mode.html * css/CSSComputedStyleDeclaration.cpp: * css/CSSParser.cpp: * css/CSSParser.h: * css/CSSPropertyNames.in: * css/CSSStyleSelector.cpp: * css/CSSStyleSelector.h: * css/CSSValueKeywords.in: - parse, assign and retrieve the value of the new -webkit-animation-fill-mode property * page/animation/AnimationBase.cpp: * page/animation/AnimationBase.h: - new state in animation engine for a finished animation that is "filling" forwards in time. This allows the engine to keep the animation around and not revert to the old style. - update the timer code to indicate it doesn't need to keep animating if it is filling - now that animations can extend beyond their elapsed time, make sure progress works correctly with iteration counts * page/animation/KeyframeAnimation.cpp: (WebCore::KeyframeAnimation::animate): - ensure correct style value is returned at the right time by checking for fill mode (WebCore::KeyframeAnimation::onAnimationEnd): - continue to send the end event, but only remove the animation if it isn't filling forwards * platform/animation/Animation.cpp: * platform/animation/Animation.h: - new fill mode member property * platform/animation/AnimationList.cpp: - ensure the fill mode is propagated to a list of style valus * platform/graphics/mac/GraphicsLayerCA.mm: - make hardware layers use Core Animation's fill mode Canonical link: https://commits.webkit.org/46873@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@55576 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-03-05 12:58:54 +00:00
This test performs an animation of the left property with four different fill modes. It animates over 0.1 second with a 0.1 second delay. It takes snapshots at document load and the end of the animation.
None
Backwards
Forwards
Both
Both iterating
PASS - start of animation - id: a expected: 100 actual: 100
PASS - start of animation - id: b expected: 200 actual: 200
PASS - start of animation - id: c expected: 100 actual: 100
PASS - start of animation - id: d expected: 200 actual: 200
PASS - start of animation - id: e expected: 200 actual: 200
PASS - end of animation - id: a expected: 100 actual: 100
PASS - end of animation - id: b expected: 100 actual: 100
PASS - end of animation - id: c expected: 300 actual: 300
PASS - end of animation - id: d expected: 300 actual: 300
PASS - end of animation - id: e expected: 200 actual: 200