Closed Bug 1174964 Opened 9 years ago Closed 7 years ago

In an svgView spec, transform() should apply before viewBox()

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1353697
Tracking Status
firefox41 --- affected

People

(Reporter: birtles, Unassigned)

References

()

Details

In the bug URL, the content is transformed as follows:

  <img src="svgNoTransform.svg#svgView(viewBox(0,0,40,40);transform(rotate(-45)translate(10,10)))"/>

Comparing the result with Chrome and IE, Firefox shows a different result. Apparently this is due to Firefox applying the 'viewBox(...)' before the 'transform(...)'.[1]

Apparently, we should do the transform() first.[2] I'm not sure why this is the case. It's not obvious from the relevant spec text[3] but maybe it falls out as a logical consequence of what these values map to.

The black box should also be transformed but that is likely bug 1174961.

[1] https://lists.w3.org/Archives/Public/www-svg/2015May/0024.html
[2] https://lists.w3.org/Archives/Public/www-svg/2015Jun/0058.html
[3] https://svgwg.org/svg2-draft/linking.html#SVGFragmentIdentifiers
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.