Closed
Bug 778007
Opened 12 years ago
Closed 12 years ago
svg element in an element doesn't get layed out properly if width and height are not specified
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 736431
People
(Reporter: burcsahinoglu, Unassigned)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25 Steps to reproduce: i have an html page which contains an svg tag containing a number of svg element and also contains an foreignobject tag containing an html tags. Actual results: when i didn't specify a width & height attribute to the svg tag, the svg tag and its descendants didn't get laid properly (the size of the svg element was wrong) and certain sub elements were not visible (using the developers tools they showed at 0,0 with 0 size it seems.) once i set *any* width height (for example 1,1) the elements are laid out properly, the svg element size itself properly, and the element contained also. Expected results: the svg element should be able to calculate it proper size without any width or height specified.
Comment 1•12 years ago
|
||
Can you attach a testcase? It's hard to speculate about what's correct vs. buggy without something concrete to go off of. See also bug 736431 comment 5, which may be related to the behavior you're seeing here.
Comment 2•12 years ago
|
||
(e.g. here's a data URI of a trivial case of <svg> in <html>, with no explicit height/width specified. It shows up just fine in my nightly Firefox build.)
> data:text/html,<!DOCTYPE html><html><body><svg><rect fill="green" height="100" width="100"></rect></svg>
Reporter | ||
Comment 3•12 years ago
|
||
the files use bootstrap & Facebook javascript sdk, i tried to remove most unnecessary items.
Comment 4•12 years ago
|
||
See bug 736431 comment 5
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•