New issue
Advanced search Search tips

Issue 776339 link

Starred by 3 users

Issue metadata

Status: Duplicate
Merged: issue 618142
Owner: ----
Closed: Oct 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Assign animation to a referenced SVG element by <use> inherits its fill

Reported by elrumord...@gmail.com, Oct 19 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36

Steps to reproduce the problem:
1. cerate an SVG with a <rect> element and reference it from a <use>
2. assign a class to the rect and animate with css

What is the expected behavior?
Beyond the fact that (probably on how each browser implements the sepcs) some browsers animate both elements (like Chrome) and others (like Safari) only the element with the class assigned, **expects** to mantain the same color.

What went wrong?
The referenced element <rect> inherits the color of the <use> element. In general the <use> inherits properties from the element references, and in this weird behaviour seems to be the opposite.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 62.0.3202.62  Channel: stable
OS Version: OS X 10.11.6
Flash Version: 

Pen: https://codepen.io/elrumordelaluz/pen/2f400bf246dfce554f76162a783aee4c?editors=1100
 
codepen_Naozdg.zip
1.0 KB Download
Screen Shot 2017-10-19 at 15.12.28.png
6.8 KB View Download
Components: Blink>SVG
Labels: Needs-Triage-M62

Comment 2 by f...@opera.com, Oct 19 2017

Dupe of issue 618142?
Mergedinto: 618142
Status: Duplicate (was: Unconfirmed)
Yep sure reads like a dupe.

I'll look into whether it's worth trying to fix this soon, given the repeated reports.

Sign in to add a comment