[Webkit-unassigned] [Bug 154049] The heights of SVG elements using relative sizes are miscalculated within border-box parents

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 12 19:44:52 PST 2019


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

Swimmer F <fabian at swm.jp> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fabian at swm.jp

--- Comment #2 from Swimmer F <fabian at swm.jp> ---
Ran into this bug today (I think).
> - Observe that the SVG element has a height that is too short by a factor of 2x the parent's padding.
My elements end up too tall.

https://jsfiddle.net/nj5a0dyq/

Playing with some paramters led me to the following findings:

- Behaves as expected as long as the sum of padding-top + padding-bottom is less than half the container's height
- Any padding, top or bottom, beyond half the container's height causes the <svg> to become that much taller instead of making it that much shorter (expected behaviour)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191213/a15e2ad6/attachment.htm>


More information about the webkit-unassigned mailing list