<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>151995</bug_id>
          
          <creation_ts>2015-12-08 09:53:33 -0800</creation_ts>
          <short_desc>Overflowing SVG is sometimes clipped at tile boundaries</short_desc>
          <delta_ts>2024-09-06 13:27:45 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>Safari 9</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=266295</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, SVGHitList</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>karlcow</cc>
    
    <cc>maggotfish</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1147325</commentid>
    <comment_count>0</comment_count>
      <attachid>266901</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2015-12-08 09:53:33 -0800</bug_when>
    <thetext>Created attachment 266901
Testcase

Attached testcase shows a bug where overflowing SVG is clipped sometimes.

The bug is that we treat the RenderSVGRoot as a layout boundary, but when it has overflow, we need to propagate layout to the containers, so that the inline boxes compute the correct overflow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1492675</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-01-08 11:40:45 -0800</bug_when>
    <thetext>&lt;rdar://problem/47122527&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1896046</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-03 11:10:32 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari 15.6.1 and Safari Technology Preview 152 using attached test css and when the green tile goes to bottom right corner, it clips and does not show full box immediately and sometime it shows and sometime clipped. All other browsers (Chrome Canary 107 and Firefox Nightly 106) work fine. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1948929</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-04-14 21:34:55 -0700</bug_when>
    <thetext>When I merge Blink&apos;s patch as part of bug 199364, this also get fixed. Tested locally.

Last time, I did the PR here - https://github.com/WebKit/WebKit/pull/9138

We can&apos;t merge Blink&apos;s patch (test cases) since they can be flaky.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999219</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-12-13 01:16:03 -0800</bug_when>
    <thetext>@Karl - is it reproducible for you. It isn&apos;t reproducible to me anymore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999230</commentid>
    <comment_count>5</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-12-13 03:26:38 -0800</bug_when>
    <thetext>Ahmad, Simon,

I have two different behaviors:

Scenario A
1. Load the test case
2. stay on the window
Result: The green box after moving is not clipped

Scenario B
1. Load the test case
2. Go to the Finder
Result: The green box after moving is clipped</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999231</commentid>
    <comment_count>6</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-12-13 03:27:36 -0800</bug_when>
    <thetext>but if in Scenario B if I click on the window the box gets unclipped again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999232</commentid>
    <comment_count>7</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-12-13 03:29:01 -0800</bug_when>
    <thetext>Firefox and Chrome never clips the green box.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999365</commentid>
    <comment_count>8</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-12-13 12:42:24 -0800</bug_when>
    <thetext>You need to put the Safari window into the background to see the bug. It still reproduces.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1999425</commentid>
    <comment_count>9</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-12-13 15:23:44 -0800</bug_when>
    <thetext>Turn on layer borders in web inspector to see the tiling change in background windows.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>266901</attachid>
            <date>2015-12-08 09:53:33 -0800</date>
            <delta_ts>2015-12-08 09:53:33 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>svg-broken-by-tiling.html</filename>
            <type>text/html</type>
            <size>547</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUw+CjxoZWFkPgogICAgPHN0eWxlPgogICAgICAgIGJvZHkgewogICAgICAg
ICAgICBtYXJnaW46IDA7CiAgICAgICAgfQogICAgICAgIAogICAgICAgIHN2ZyB7CiAgICAgICAg
ICAgIGJvcmRlcjogMXB4IHNvbGlkIGJsYWNrOwogICAgICAgIH0KICAgIDwvc3R5bGU+CjwvaGVh
ZD4KPHN2ZyBpZD0ic3Zncm9vdCIgd2lkdGg9IjUwMCIgaGVpZ2h0PSI1MDAiIG92ZXJmbG93PSJ2
aXNpYmxlIj4KICA8c3ZnIGlkPSJjYW52YXNCYWNrZ3JvdW5kIiB4PSIwIiB5PSIwIiB3aWR0aD0i
NTAwIiBoZWlnaHQ9IjUwMCI+CiAgICA8cmVjdCB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgZmls
bD0iZ3JlZW4iIHN0cm9rZS13aWR0aD0iNSIgc3Ryb2tlPSJibHVlIi8+CiAgPC9zdmc+Cjwvc3Zn
Pgo8c2NyaXB0PgogIHNldFRpbWVvdXQoZnVuY3Rpb24oKSB7CiAgICBjYW52YXNCYWNrZ3JvdW5k
LnNldEF0dHJpYnV0ZSgneCcsIDQwMCk7CiAgICBjYW52YXNCYWNrZ3JvdW5kLnNldEF0dHJpYnV0
ZSgneScsIDQwMCk7CiAgfSwgMzAwMCk7Cjwvc2NyaXB0Pg==
</data>

          </attachment>
      

    </bug>

</bugzilla>