NEW 120494
Implement computed style for animation shorthand and align parsing with the spec
https://bugs.webkit.org/show_bug.cgi?id=120494
Summary Implement computed style for animation shorthand and align parsing with the spec
Ryosuke Niwa
Reported 2013-08-29 14:59:35 PDT
Consider merging https://chromium.googlesource.com/chromium/blink/+/3eba59a6735370298e614f5e4d7a52abf7e185eb Implement the computed style for the animation shorthand which will avoid to return "". Improve parsing of the shorthand by adding the play-state property part of the parsing. This align with the spec and it was changed at the end of last year. Remove dead code in CSSParser-in.cpp inherited from the transitions. There are few commented tests that are not passing as they do not yet align with the spec. It's a trickier issue that I will fix in a following patch (bug is linked).
Attachments
Simon Fraser (smfr)
Comment 1 2016-04-28 13:06:37 PDT
I added play-state parsing via bug 156959
Ahmad Saleem
Comment 2 2022-12-17 13:49:33 PST
Took tests from source.chromium.org: Test Case - https://jsfiddle.net/jfo63L87/ ^STP160 failing two Test Case - 02 - https://jsfiddle.net/14d3xr0t/show ^STP160 failing one Test Case - 03 - https://jsfiddle.net/gqwk1cuz/show ^STP160 failing two Test Case - 04 - https://jsfiddle.net/kgtwjs3x/show ^STP160 failing three Test Case - 05 - https://jsfiddle.net/grk78wtx/show ^STP160 fail both tests ______ Test from this patch: JSFiddle - https://jsfiddle.net/2srtn3jy/show Failing in STP160 compared to Chrome Canary 110 (not testing Firefox due to webkit prefix): FAIL Object.keys(style).indexOf('animationName') should not be -1. FAIL Object.keys(style).indexOf('webkitAnimationName') should not be -1. FAIL Object.keys(style).indexOf('animationDuration') should not be -1. FAIL Object.keys(style).indexOf('webkitAnimationDuration') should not be -1. FAIL Object.keys(style).indexOf('animationTimingFunction') should not be -1. FAIL Object.keys(style).indexOf('webkitAnimationTimingFunction') should not be -1. FAIL style.animationTimingFunction should be step-start. Was steps(1, start). FAIL style.webkitAnimationTimingFunction should be step-start. Was steps(1, start). FAIL style.animationTimingFunction should be step-end. Was steps(1). FAIL Object.keys(style).indexOf('animationDelay') should not be -1. FAIL Object.keys(style).indexOf('webkitAnimationDelay') should not be -1. FAIL Object.keys(style).indexOf('animationIterationCount') should not be -1. FAIL Object.keys(style).indexOf('webkitAnimationIterationCount') should not be -1. FAIL Object.keys(style).indexOf('animationDirection') should not be -1. FAIL Object.keys(style).indexOf('webkitAnimationDirection') should not be -1. FAIL Object.keys(style).indexOf('animationPlayState') should not be -1. FAIL Object.keys(style).indexOf('webkitAnimationPlayState') should not be -1. FAIL Object.keys(style).indexOf('animationFillMode') should not be -1. FAIL Object.keys(style).indexOf('webkitAnimationFillMode') should not be -1. and quite few more. ____ Just wanted to share updated testing result. Thanks!
Tim Nguyen (:ntim)
Comment 3 2022-12-17 22:46:29 PST
Darin, can this be closed with your recent changes?
Darin Adler
Comment 4 2022-12-18 07:45:51 PST
I didn’t make any improvements to computed style, so I’m guessing it’s not entirely right yet.
Note You need to log in before you can comment on or make changes to this bug.