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

18 lines
839 B
Plaintext
Raw Permalink Normal View History

Source/WebCore: Implement reverse animation direction Implement reverse animation direction https://bugs.webkit.org/show_bug.cgi?id=60525 Implement reverse and alternate-reverse direction. Reviewed by Dean Jackson. Tests: animations/animation-direction-alternate-reverse.html animations/animation-direction-reverse.html animations/fill-mode-reverse.html * css/CSSParser.cpp: (WebCore::CSSParser::parseAnimationDirection): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::mapAnimationDirection): * css/CSSValueKeywords.in: * page/WebKitAnimation.cpp: (WebCore::WebKitAnimation::direction): * page/WebKitAnimation.h: * page/animation/AnimationBase.cpp: (WebCore::AnimationBase::fractionalTime): * platform/animation/Animation.h: (Animation): * platform/graphics/texmap/TextureMapperAnimation.cpp: (WebCore): (WebCore::shouldReverseAnimationValue): (WebCore::normalizedAnimationValue): LayoutTests: Implement reverse animation direction https://bugs.webkit.org/show_bug.cgi?id=60525 Add test for the new animation-direction values. Reviewed by Dean Jackson. * animations/animation-direction-alternate-reverse-expected.txt: Added. * animations/animation-direction-alternate-reverse.html: Added. * animations/animation-direction-reverse-expected.txt: Added. * animations/animation-direction-reverse.html: Added. * animations/fill-mode-reverse-expected.txt: Added. * animations/fill-mode-reverse.html: Added. Canonical link: https://commits.webkit.org/95071@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@107162 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-02-09 02:07:11 +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: 300 actual: 300
PASS - start of animation - id: c expected: 100 actual: 100
PASS - start of animation - id: d expected: 300 actual: 300
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
Safari mis-applies "animation-fill-mode: forwards" when using fractional iteration count https://bugs.webkit.org/show_bug.cgi?id=146996 Reviewed by Dean Jackson. Source/WebCore: animation-fill-mode: forwards with fractional iteration counts always snapped to 1 or 0, depending on direction. Fix to compute the fill-forward state from the correct keyframes. If filling forwards, AnimationBase::progress() sets the elapsed time to the duration, then uses fractionalTime() to handle animation direction mapping. If the fractionalTime is integral, we can return early, avoiding the cost of mapping through timing functions. Tested by existing tests. * page/animation/AnimationBase.cpp: (WebCore::AnimationBase::progress): (WebCore::AnimationBase::getElapsedTime): * page/animation/KeyframeAnimation.cpp: (WebCore::KeyframeAnimation::fetchIntervalEndpointsForProperty): It was possible to end up with prevIndex == nextIndex with reverse animations, which resulted in divide-by-zero when computing scale. Fix by picking a nextIndex that is different from prevIndex. LayoutTests: Progressions, improved tests. * animations/animation-direction-reverse-fill-mode-expected.txt: New results; this is a progression. * animations/animation-direction-reverse-fill-mode.html: Use a shorter animation. Fixed results. * animations/fill-mode-iteration-count-non-integer-expected.txt: * animations/fill-mode-iteration-count-non-integer.html: Use iteration counts that are not multiplies of 0.5, so the test can differentiation between forward and backwards states. Add a non-linear timing function to check that fill-forwards consults the timing functions. Don't print exact succeeding results because they may have floating point values. * animations/fill-mode-reverse-expected.txt: New results; this is a progression. * animations/fill-mode-reverse.html: Fixed results, use gray. Canonical link: https://commits.webkit.org/165201@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187121 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-07-21 21:19:20 +00:00
PASS - end of animation - id: c expected: 200 actual: 200
PASS - end of animation - id: d expected: 200 actual: 200
Source/WebCore: Implement reverse animation direction Implement reverse animation direction https://bugs.webkit.org/show_bug.cgi?id=60525 Implement reverse and alternate-reverse direction. Reviewed by Dean Jackson. Tests: animations/animation-direction-alternate-reverse.html animations/animation-direction-reverse.html animations/fill-mode-reverse.html * css/CSSParser.cpp: (WebCore::CSSParser::parseAnimationDirection): * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::mapAnimationDirection): * css/CSSValueKeywords.in: * page/WebKitAnimation.cpp: (WebCore::WebKitAnimation::direction): * page/WebKitAnimation.h: * page/animation/AnimationBase.cpp: (WebCore::AnimationBase::fractionalTime): * platform/animation/Animation.h: (Animation): * platform/graphics/texmap/TextureMapperAnimation.cpp: (WebCore): (WebCore::shouldReverseAnimationValue): (WebCore::normalizedAnimationValue): LayoutTests: Implement reverse animation direction https://bugs.webkit.org/show_bug.cgi?id=60525 Add test for the new animation-direction values. Reviewed by Dean Jackson. * animations/animation-direction-alternate-reverse-expected.txt: Added. * animations/animation-direction-alternate-reverse.html: Added. * animations/animation-direction-reverse-expected.txt: Added. * animations/animation-direction-reverse.html: Added. * animations/fill-mode-reverse-expected.txt: Added. * animations/fill-mode-reverse.html: Added. Canonical link: https://commits.webkit.org/95071@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@107162 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-02-09 02:07:11 +00:00
PASS - end of animation - id: e expected: 200 actual: 200