Closed Bug 843480 Opened 12 years ago Closed 8 years ago

When applying page zoom to SVG in iframe both frame and contents are scaled

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla51
Tracking Status
firefox51 --- verified

People

(Reporter: birtles, Assigned: longsonr)

References

Details

(Keywords: regression)

Attachments

(6 files)

When an HTML <iframe> points to an SVG file, typically the contents of the SVG file are scaled to fit the frame (assuming the viewBox is set and width/height are 100%). However, when applying page zoom it seems that both the frame and the contents are zoomed separately and hence the contents no longer fit the frame.
Attached file Test case
Attached image Result with no zoom
Appears to be a regression. Works fine with ESR 10.
Keywords: regression
could be bug 407495
local backout of bug 407495 fixes this issue.
Blocks: 407495
Assignee: nobody → longsonr
Attachment #8776620 - Flags: review?(jwatt)
Comment on attachment 8776620 [details] [diff] [review] We should treat an iframe the same as object, embed etc. Thanks, Robert! Would you be able to add a reftest for this in layout/reftests/svg/moz-only? I think you can set reftest-zoom="2" or something on the <html> element to trigger zoom.
Attachment #8776620 - Flags: review?(jwatt) → review+
Flags: in-testsuite+
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
@Robert Longson: Thank you very much for fixing this issue! :)
I've managed to reproduced this bug on an older Nightly build from 2013-05-01, using Windows 10 64-bit. This issue is verified fix on latest Nightly 51.0a1 (2016-08-04) using Windows 10, 64-bit.
Status: RESOLVED → VERIFIED
Depends on: 1342800
No longer depends on: 1342800
Regressions: 1342800
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: