Closed Bug 1893731 Opened 1 year ago Closed 1 year ago

SVG animation is not rendering

Categories

(Core :: SVG, defect)

Firefox 125
defect

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox125 --- wontfix
firefox126 --- wontfix
firefox127 --- fixed

People

(Reporter: leeroyjenkins176, Assigned: longsonr)

References

Details

(Keywords: regression)

Attachments

(6 files)

Attached image chart.svg

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0

Steps to reproduce:

CSS animation
@keyframes chart {
from { width: 0px }
to { width: 606px }
}
Applied to a <rect> element located inside a <clipPath>. After a few seconds/milliseconds from the start, the animation stops rendering. You can only resume rendering by clicking the document with the mouse.

Attached video chrome.mp4
Attached video firefox.mp4

Not a recent regression goes back to at least 2019. Before that we don't even try to animate, we just show the whole graph from the start, presumably we implemented something to do that. The range I get for that is this

https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=29bdbbe89264b91d1bd4205c45536c9222a8d6ee&tochange=257f2c96cef502a1d674df56c8e39d76d8ed4d89

(In reply to Timothy Nikkel (:tnikkel) from comment #3)

Not a recent regression goes back to at least 2019. Before that we don't even try to animate, we just show the whole graph from the start, presumably we implemented something to do that. The range I get for that is this

https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=29bdbbe89264b91d1bd4205c45536c9222a8d6ee&tochange=257f2c96cef502a1d674df56c8e39d76d8ed4d89

Narrowed:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=2ad581fafc85ab939d75f7aa1a2f901f45ecb113&tochange=21b3ac9c491755466306d68e1e198a6891c0e561

Keywords: regression
Regressed by: 1383650

Thanks for narrowing that down.

I don't think I would call this bug regressed by that. That bug is what allows the animation to even try to animate, before that we didn't even try to animate it.

No longer regressed by: 1383650

In a profile I see that all the other animations in the document are listed (opacity, axis-x axis-y) but not the animation for drawing the content of the chart (chart). The chart animation is on the clippath that is applied to the chart content, as opposed to on the content itself like the other animations.

Flipping dom.animations.offscreen-throttling does not have an affect.

Status: UNCONFIRMED → NEW
Ever confirmed: true
See Also: → 1882773
Assignee: nobody → longsonr
Status: NEW → ASSIGNED

This bug has been marked as a regression. Setting status flag for Nightly to affected.

This doesn't change behavior as is but prevents an assertion with the
other proposed patch.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/50a09d96ee0d Allow posting restyles from DidSetComputedStyle / the post-traversal. r=longsonr
Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/autoland/rev/6e9ba14c08df invalidate rendering observers when SVG geometry styles change r=emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: