Bug 272440
| Summary: | [css-animations] CSS animation="none" property should stay as is | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Karl Dubost <karlcow> |
| Component: | Animations | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | dino, graouts, graouts, webkit-bug-importer |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar, WPTImpact |
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://wpt.live/css/css-animations/parsing/animation-valid.html | ||
Karl Dubost
Enter in STP 191
data:text/html,<div%20style="animation:none"></div>
In the Web Inspector console, type
document.querySelector('div').style.getPropertyValue('animation')
It returns 0s instead of none.
This fails the test
http://wpt.live/css/css-animations/parsing/animation-valid.html
http://wpt.fyi/css/css-animations/parsing/animation-valid.html
Firefox and Chrome return the correct value.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/126186241>
Antoine Quint
This test was added in https://github.com/web-platform-tests/wpt/commit/ec49f0a0b605c79a343c9e6a12126502cee58638 and is related to the change in the CSS Animations spec to report `auto` instead of `0s` as the default animation-duration value. Compare and contrast:
https://drafts.csswg.org/css-animations-1/#animation-duration
https://drafts.csswg.org/css-animations-2/#animation-duration
This is part of the scroll-linked animations work.
Karl Dubost
Everything is green on.
http://wpt.fyi/results/css/css-animations/parsing/animation-valid.html
BUT
data:text/html,<div%20style="animation:none"></div>
document.querySelector('div').style.getPropertyValue('animation')
NOW returns on
STP 230: "auto"
Firefox: "none"
Chrome: "auto ease 0s 1 normal none running none"
Karl Dubost
Probably the better test is now
http://wpt.fyi/results/css/css-animations/parsing/animation-computed.html
Antoine Quint
Both the WPT tests listed are green on Safari (and Firefox). Should we close this?