Closed Bug 1102145 Opened 11 years ago Closed 9 years ago

CSS transformation not applied to svg subelements (path circle etc)

Categories

(Core :: SVG, defect)

37 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: regardingscot, Unassigned)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.65 Safari/537.36 Steps to reproduce: svg path.one path.two .one { transform: rotate(90deg) } Actual results: Transformation is listed in console but is not applied visually (i.e. path element is not rotated) Expected results: Chrome and Safari and IE rotate the single path element according to the css style rule
Can you please attach a testcase showing the problem? Because as far as I can tell this is working just fine (at least in a current Firefox nightly on Mac).
Sorry it was my mistake, the actual code was combination of translateX and rotate and because the translation was 0% I thought it was the rotation. Further testing revealed that transform origin is not working when provided with % values and translate is also not working at all when provided as % values. test case here: http://jsbin.com/numovu/1/edit?html,css,output adding 0% to the transform origin shows the path but it is not translated properly.
Ah, thanks. It looks like the percentage basis used in this case is 0. Per spec, since 'transform-box' is not being used, we should be using the "view-box", which means we should be using the nearest SVG viewport.
Component: General → SVG
Basically this is the same issue as bug 923193. nsDisplayTransform doesn't support percentage values in CSS transforms on SVG right now.
Depends on: 923193
OS: Linux → All
Hardware: x86 → All
Ok thanks. I will be following the referenced bug report.
fixed by bug 923193
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: