Created attachment 280177 [details] Test case reduction Found a rendering bug in WebKit related to SVG and padding. If you have an <svg> element inside a <div>, and you specify a non-zero padding-top value for the SVG element, but keep the padding-left property as 0, the element content gets rendered as if padding-top was 0. Specifying a padding-left of 1px makes the rendering normal. The same bug doesn't seem to happen with padding-right. The problem seems to be only related to the rendering of the SVG content, since layout seems to be normal on the Web Inspector. All other major browsers seem to agree on the rendering. (Screenshots below) Attached is a test case reduction for the bug. Rendering in Safari Technology Preview: https://cldup.com/hti9HBL7Df.png Rendering in Firefox: https://cldup.com/N6V1hKJvdL.png Rendering in Chrome: https://cldup.com/B8RxpaeDN2.png Rendering in Edge: https://cldup.com/Y30FAbpYaU.png Layout as per the Safari Technology Preview Web Inspector: https://cldup.com/V4ZCGl0zrC.png
Created attachment 280194 [details] Patch
This is related to http://trac.webkit.org/changeset/105247
Created attachment 280270 [details] Patch
Comment on attachment 280270 [details] Patch Clearing flags on attachment: 280270 Committed r201604: <http://trac.webkit.org/changeset/201604>
All reviewed patches have been landed. Closing bug.