| Summary: | SVG SMIL restart="never" does not behave correctly | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | kari.pihkala | ||||||||||
| Component: | SVG | Assignee: | Antoine Quint <graouts> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | clopez, dino, ews-watchlist, fmalita, graouts, gyuyoung.kim, koivisto, pdr, sabouhallawa, schenney, sergio, webkit-bug-importer, youennf, zimmermann | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | Safari 15 | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| See Also: | https://github.com/web-platform-tests/wpt/pull/32856 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
kari.pihkala
2022-02-11 01:06:04 PST
It looks like "never" and "whenNotActive" behave the same. The "restart" value is not checked when we compute a new interval in SVGSMILElement::beginListChanged(). Created attachment 451888 [details]
Patch
Comment on attachment 451888 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=451888&action=review > Source/WebCore/ChangeLog:8 > + Test: svg/animations/restart-never-and-begin-click.html WPT? Created attachment 452164 [details]
Patch for landing
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/32856 This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess Thank you for fixing this so fast!
I noticed that restart-never-and-begin-click.html in the Patch (attachment 451888 [details]) says: "Setting restart='always' prevents animation with begin='click' from restarting". Shouldn't it say "Setting restart='never' "?
(In reply to kari.pihkala from comment #8) > Thank you for fixing this so fast! You're welcome. Thanks for filing the bug! > I noticed that restart-never-and-begin-click.html in the Patch (attachment > 451888 [details]) says: "Setting restart='always' prevents animation with > begin='click' from restarting". Shouldn't it say "Setting restart='never' "? Oh, indeed! I will fix this when I finally commit the change. Created attachment 452202 [details]
Patch for landing
Committed r290010 (247396@trunk): <https://commits.webkit.org/247396@trunk> |