<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Clipping along compositing borders in svg-edit"
   href="https://bugs.webkit.org/show_bug.cgi?id=151791#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Clipping along compositing borders in svg-edit"
   href="https://bugs.webkit.org/show_bug.cgi?id=151791">bug 151791</a>
              from <span class="vcard"><a class="email" href="mailto:simon.fraser&#64;apple.com" title="Simon Fraser (smfr) &lt;simon.fraser&#64;apple.com&gt;"> <span class="fn">Simon Fraser (smfr)</span></a>
</span></b>
        <pre>I think the problem is that InlineBoxes know nothing about the overflowing SVG.

Here's the render tree in the small testcase:
(R)elative/A(B)solute/Fi(X)ed/Stick(Y) positioned, (O)verflow clipping, (A)nonymous, (G)enerated, (F)loating, has(L)ayer, (C)omposited, (D)irty layout, Dirty (S)tyle
---G-LC --  RenderView  (0.00, 0.00) (897.00, 465.00) renderer-&gt;(0x115ac92a0)
-----L- --    HTML RenderBlock  (0.00, 0.00) (897.00, 506.00) renderer-&gt;(0x115bdd730) node-&gt;(0x115b3f5b0)
------- --*     BODY RenderBody  (0.00, 0.00) (897.00, 506.00) renderer-&gt;(0x115bdd7e8) node-&gt;(0x115b3f6e8)
------- --        RootInlineBox  (0.00, 488.00) (502.00, 18.00) (0x115b3a2a0) renderer-&gt;(0x115bdd7e8)
------- --          InlineBox  (0.00, 0.00) (502.00, 502.00) (0x115b50e10) renderer-&gt;(0x115aef5e0)
------- --        svg RenderSVGRoot  (0.00, 0.00) (502.00, 502.00) renderer-&gt;(0x115aef5e0) node-&gt;(0x115af08e8)
------- --          svg RenderSVGViewportContainer renderer-&gt;(0x115b91288) node-&gt;(0x115af0ab0)
------- --            rect RenderSVGRect renderer-&gt;(0x115a86108) node-&gt;(0x115ae1680)
------- --        #text RenderText renderer-&gt;(0x115be7ea0) node-&gt;(0x115b8a730) length-&gt;(1) &quot;\n&quot;

After the rect in the SVG moves, the SVG bounds are actually 608x608, but line boxes only know about 502x502. So InlineFlowBox::paint() short-circuits, and we never paint the overflowing SVG.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>