Bug 25178
Summary: | inline SVG elements not sized the same as Firefox | ||
---|---|---|---|
Product: | WebKit | Reporter: | Burkhard Daniel <daniel> |
Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Major | CC: | daniel, zimmermann |
Priority: | P2 | ||
Version: | 525.x (Safari 3.2) | ||
Hardware: | PC | ||
OS: | Windows XP |
Burkhard Daniel
inline SVG elements (i.e. with the SVG embedded in the XHMTL) that do not specify an absolute width and height attribute are not sized correctly when displayed in a table cell. For example: The diagrams in http://www.mtronix.de/webkitBug/test.xhtml are inline SVGs, and they have a viewBox, but no width and height attributes. I was expecting the diagrams to be sized according to the table columns in which their table cell lives and I was expecting that table cell's height to be adjusted according to the SVG's aspect ratio. This works in Firefox.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Eric Seidel (no email)
The SVG is going to have width="100%" height="100%" by default. I think Firefox's behavior is incorrect here. If you added an <img> tag with style="width: 100%; height: 100%" I think you would expect WebKit's behavior (and FF and WebKit would match). FF seems to be doing something wrong for SVGs as far as I can tell. viewBox does not specify how large the SVG renders, just what the coordinate system of the SVG canvas is.
Nikolas Zimmermann
Good evening Burkhard,
the testcase is not available anymore. Can you attach it to the bug report?
Nikolas Zimmermann
*** Bug 25179 has been marked as a duplicate of this bug. ***
Nikolas Zimmermann
Unfortunately we still have to testcase, but I have plenty other demonstrating the problem...
Going to work on bug 14004, which is fixing this problem alltogether. Marking as dup.
*** This bug has been marked as a duplicate of bug 14004 ***