Closed Bug 1268720 Opened 9 years ago Closed 6 years ago

Some SVG attributes have no correlating CSS property

Categories

(Core :: SVG, defect)

46 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1383650

People

(Reporter: mbaker, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:46.0) Gecko/20100101 Firefox/46.0 Build ID: 20160421124000 Steps to reproduce: <svg> <style> circle { r: 25 } </style> <circle cx="50" cy="50" r="45" /> </svg> Actual results: console warns: Unknown property 'r'. Declaration dropped. Expected results: Circle should have 25 radius (cascading style overrides attribute), no warning. http://codepen.io/Kohesion/pen/KzGQQR
In SVG 1.1 r is an attribute and not a CSS property. The idea that r is a CSS property is new in the unfinished SVG 2 specification. Firefox has not implemented this part of SVG 2 yet.
Component: Untriaged → SVG
Yes, Unfortunately Chrome and Safari have implemented this while Chrome has deprecated SMIL animation. Until Firefox/Mozilla catches up to the other class A vendors, there will be no unified, cross-platform way to animate SVG without resorting to javascript.
Sure there is, it's called SMIL. Chrome has merely deprecated their in browser implementation but that's no problem because you can use this https://github.com/ericwilligers/svg-animation to add it back in. In the medium term the cross-platform way will be web animations which is being worked on by many UA vendors.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.