Closed Bug 790288 Opened 12 years ago Closed 12 years ago

SVG disappears when some elements are far outside the viewbox

Categories

(Core :: SVG, defect)

15 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: rdueck, Unassigned)

References

Details

(Keywords: regression, testcase)

Attachments

(1 file)

506 bytes, image/svg+xml
Details
Attached image example.svg
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20100101 Firefox/15.0.1 Build ID: 20120905151427 Steps to reproduce: Upgraded from Firefox 14 to 15, then tried to view an SVG document that had worked previously. I've pared down the document to the bare essentials (attached), with 2 example causes of the issue. It tries to display 2 elements inside the viewbox, with 2 more elements far outside the viewbox. If I remove the enclosing <g> element, the problem is gone. If I remove the out-of-range elements, the problem is gone. If I move the out-of-range elements 1 coordinate value closer to the viewbox, the problem is gone. If I change the out-of-range coordinate value to a positive value, the problem is gone. Actual results: Nothing is displayed. With a zooming script in place that manipulates the current transformation matrix on the outermost <g> element, the circles inside the original viewbox will appear if I zoom out far enough. Expected results: All elements inside the viewbox should be displayed. Out-of-range elements should not affect this.
Forgot to mention: If I open the Firebug frame, the missing elements are displayed, as they should be.
Does this work if you try it on a nightly? It does work for me on Windows? Does it work if you run in safe mode?
Component: Untriaged → SVG
Product: Firefox → Core
wfm with trunk + Firefox 15 on win32 and Firefox 15 on Linux
I'm able to reproduce the issue. When my Firefox window is maximized, I can't see the SVG (two vertical black circles). If I reduce the window, the SVG appears. mozregression range: m-c good=2012-05-17 bad=2012-05-18 http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=762e95608da3&tochange=e794cef56df6 m-i good=2012-05-16 bad=2012-05-17 http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=55b4de9a4f53&tochange=12f13acb5ea8 Suspected bug: Jonathan Watt — Bug 734082 - Compute and store bounds and visual overflow bounds for both SVG leaf and container frames. r=roc.
Blocks: 734082
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression, testcase
Seems to be fixed.
(In reply to Jonathan Watt [:jwatt] from comment #5) > Seems to be fixed. In which version?
Nightly.
It's the sort of thing that bug 791675 should have fixed.
WFM too FWIW
(In reply to Robert Longson from comment #8) > It's the sort of thing that bug 791675 should have fixed. Yes, probably: m-c bad=2012-12-20 good=2012-12-21 http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=21195f52311c&tochange=c965fa0804cf
Depends on: 791675
Cool. Closing as fixed by bug 791675 then. The first release to have this fix will be Firefox 19.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: