web-animations / web-animations-js-legacy

The original emulator of the Web Animations specification. Please use web-animations-js instead:
https://github.com/web-animations/web-animations-js
Apache License 2.0
706 stars 84 forks source link

"transform styles SVG elements" feature needs to be detected #141

Open shans opened 11 years ago

shans commented 11 years ago

In WebKit, the 'transform' property applies to SVG elements. In Firefox it does not. Instead, Firefox SVG elements accept a 'transform' attribute value.

We'll need to detect this feature so that we can decide whether SVG 'transform' animations should be applied through style or through the 'transform' attribute.

birtles commented 11 years ago

Yes, that's right. I'm sure the transform property will be added to SVG elements in Firefox in the future but it's not yet. Bear in mind that the values accepted by the property differ to those accepted by the attribute so it's not just a matter of where you plug it in.

shans commented 11 years ago

Testing in Firefox 19.0.2 it seems that an explicit style attribute with "transform: rotate(45deg)" does work. Given this, are there any problems with us using the style approach (i.e. are we OK with not targeting non-head for evergreen browsers)?