Closed Bug 1513920 Opened 7 years ago Closed 7 years ago

Regression: SVG symbol element content can't be animated with CSS

Categories

(Core :: SVG, defect)

63 Branch
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla66
Tracking Status
firefox-esr60 --- unaffected
firefox64 --- wontfix
firefox65 --- verified
firefox66 --- verified

People

(Reporter: kari_pihkala, Assigned: emilio)

References

Details

(4 keywords)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:63.0) Gecko/20100101 Firefox/63.0 Steps to reproduce: 1. Open the attached test case symbol-css-animate.svg or go to CodePen: https://codepen.io/anon/pen/roxxyg?editors=1100 2. Observe the SVG document, all three rectangles should be rotating. Actual results: Only the green rectangle is rotating. The red rectangles are not rotating. Expected results: All three rectangles should be rotating, including the red rectangles. The red rectangles are inside SVG <symbol>. It seems that CSS animations can't anymore animate the contents of the symbol element. This used to work in Firefox 62.0. This doesn't work anymore in Firefox 63.0. Google Chrome shows all three rectangles rotating.
Blocks: 1450250
Status: UNCONFIRMED → NEW
Has Regression Range: --- → yes
Component: Untriaged → SVG
Ever confirmed: true
Flags: needinfo?(emilio)
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → All
Ah, I see what happens. Thanks for the report... We clearly don't have enough tests for <svg:use>...
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1b1eaa3248a7 Make <use> shadow trees lookup keyframe rules in the containing tree. r=heycam
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/14562 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Please nominate this for Beta approval when you get a chance.
Flags: needinfo?(emilio)
Flags: in-testsuite+
Comment on attachment 9031407 [details] Bug 1513920 - Make <use> shadow trees lookup keyframe rules in the containing tree. [Beta/Release Uplift Approval Request] Feature/Bug causing the regression: Bug 1450250 User impact if declined: Some animations in SVG may not be honored. Is this code covered by automated tests?: Yes Has the fix been verified in Nightly?: Yes Needs manual test from QE?: Yes If yes, steps to reproduce: See the test-case. List of other uplifts needed: none Risk to taking this patch: Low Why is the change risky/not risky? (and alternatives if risky): Trivial fix contained to <svg:use>. String changes made/needed: none
Flags: needinfo?(emilio)
Attachment #9031407 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Comment on attachment 9031407 [details] Bug 1513920 - Make <use> shadow trees lookup keyframe rules in the containing tree. [Triage Comment] Fixes a regression causing some animated SVGs to not be animated. Approved for 65.0b6.
Attachment #9031407 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
I have managed to reproduce the issue described in comment 0 using Firefox 65.0b5. This issue is verified fixed using Firefox 66.0a1 (BuildId:20181219220049) and Firefox 65.0b6 (provided in comment 13) on Windows 10 64bit, macOS 10.9 and Ubuntu 16.04 64bit.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: