[Webkit-unassigned] [Bug 68995] Height of SVG element is incorrectly calculated when svg when width of containing element is set as a percentage

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 5 21:32:54 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=68995


Myles Borins <myles.borins at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |myles.borins at gmail.com




--- Comment #2 from Myles Borins <myles.borins at gmail.com>  2012-07-05 21:32:54 PST ---
I am having the same problem in regards to SVG and height.

Expected Behavior:

An SVG element with a viewBox attribute should responsively scale to fit the div element it is within, and the div element should accurately scale based on the aspect ratio of the viewBox.  In firefox this behavior is accurate and consistent.

Bug:

When an svg element is drawn the height of the div / viewBox defaults to the full height of the window if no style for height or width are present.  When multiple SVG elements are placed side by side, and on top of one another, the side by side elements scale as expect, but large gaps are present between the rows.

http://jsfiddle.net/Ede2v/

The above jsfiddle is a perfect example of the problem mentioned in this bug report. (It will also be attached as html).  

It would appear that the cause of this bug is a miscalculation of the height of the viewbox... I will attempt to dig in to the source and find the cause of the error.  Any guidance or suggestions would be greatly appreciated.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list