Re: FF21: Why no scrollbars on SVG without explicit height?
Robert Longson <[email protected]> Tue, 4 Jun 2013 14:34:28 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday, 4 June 2013 04:26:52 UTC+1, [email protected] wrote: > > Since my SVG lacks a height and width declared, my reading of the SVG spec is that both should default to 100% of the container, and thus all of my SVG should be displayed. If I explicitly specify a height, this problem goes away, but per the SVG spec I should not need one. (And, suppose the SVG is being generated programmatically - then calculating the correct height could be a lot of extra code.) It's correct that both default to 100% of the container. That just means that 1 pixel of the container = 1 pixel of the drawing per http://www.w3.org/TR/SVG/coords.html#EstablishingANewViewport Opera implements this logic correctly too in this case. > > > > Alternatively, if Firefox is not going to scale it so it all displays, at least provide a vertical scrollbar so I can see it all by scrolling. But the svg element is exactly the size of the viewport, hence no scrollbars. > > Question: Is this a bug in Firefox's SVG handling? Or am I just misunderstanding the SVG spec? I don't think there's a bug here. Robert