<?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>68196</bug_id>
          
          <creation_ts>2011-09-15 15:54:09 -0700</creation_ts>
          <short_desc>border-radius clipping of composited layers doesn&apos;t work</short_desc>
          <delta_ts>2023-02-20 15:41:49 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=67950</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dave Hyatt">hyatt</reporter>
          <assigned_to name="Simon Fraser (smfr)">simon.fraser</assigned_to>
          <cc>7raivis</cc>
    
    <cc>amaury.bauzac</cc>
    
    <cc>anilsson</cc>
    
    <cc>carrie.morrisons</cc>
    
    <cc>chutten</cc>
    
    <cc>drackett</cc>
    
    <cc>ikushum</cc>
    
    <cc>jay.bhaskar</cc>
    
    <cc>karlcow</cc>
    
    <cc>niklas.nordlund</cc>
    
    <cc>sanjoy.pal</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>vivekg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>468129</commentid>
    <comment_count>0</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2011-09-15 15:54:09 -0700</bug_when>
    <thetext>Broken out from https://bugs.webkit.org/show_bug.cgi?id=50072

See the test case I added with broken rendering in r95239 where a composited layer clipped by an uncomposited ancestor does not respect the border radius clip.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>468131</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-09-15 15:57:37 -0700</bug_when>
    <thetext>&lt;rdar://problem/10133719&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>813789</commentid>
    <comment_count>2</comment_count>
    <who name="Binyamin">7raivis</who>
    <bug_when>2013-01-22 21:36:56 -0800</bug_when>
    <thetext>Chrome related bug http://crbug.com/157218
Simplified test case http://jsfiddle.net/laukstein/bhmka/5/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>813791</commentid>
    <comment_count>3</comment_count>
      <attachid>184134</attachid>
    <who name="Binyamin">7raivis</who>
    <bug_when>2013-01-22 21:37:49 -0800</bug_when>
    <thetext>Created attachment 184134
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>901339</commentid>
    <comment_count>4</comment_count>
    <who name="Sanjoy Pal">sanjoy.pal</who>
    <bug_when>2013-06-18 04:04:43 -0700</bug_when>
    <thetext>&lt;style&gt;
.outer {
    overflow: hidden;
    width: 100px;
    height: 100px;
    background-color: rgb(0,238,228);
    border: 3px solid #000;
    border-radius: 50%;
}
.inner {
    height: 100%;
    line-height: 5.8;
    text-align: center;
    background-color: rgba(255,0,0,.5);
}
.transform {
    -webkit-transform: translate3d(10px,10px,0);
    transform: translate3d(10px,10px,0);
}
&lt;/style&gt;
&lt;html&gt;
&lt;div class=outer&gt;
    &lt;div class=&quot;inner transform&quot;&gt;with transformdfdfdsfdsf&lt;/div&gt;
&lt;/div&gt;
&lt;/html&gt;

While debugging this issue with the above html, &lt;div class=&quot;inner transform&quot;&gt; is promoted to posZOrderList of &lt;html&gt; and gets a compositing layer. So, &lt;html&gt; also gets a compositing layer because of subtree reasons CompositingReasonClipsCompositingDescendants(as &lt;div class=&quot;inner transform&quot;&gt; becomes child of &lt;html&gt; in paint-order). So, clippedByAncestor(RenderLayer* layer) for &lt;div class=&quot;inner transform&quot;&gt; returns &lt;html&gt; element which is wrong. It should return &lt;div class=outer&gt; as clipping ancestor.

As per my understanding, &lt;div class=&quot;inner transform&quot;&gt; should be child of &lt;div class=outer&gt; in paint-order and &lt;div class=outer&gt; should also get a compositing layer and  so that clipping works properly. 

Please correct me if my understanding is wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895281</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-08-31 14:40:14 -0700</bug_when>
    <thetext>*** Bug 140535 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895283</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-08-31 14:40:20 -0700</bug_when>
    <thetext>*** Bug 146784 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895285</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-08-31 14:40:28 -0700</bug_when>
    <thetext>*** Bug 230636 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895326</commentid>
    <comment_count>8</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-08-31 15:59:31 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/3883</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1896917</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-09-07 16:11:03 -0700</bug_when>
    <thetext>Committed 254253@main (97910542b25d): &lt;https://commits.webkit.org/254253@main&gt;

Reviewed commits have been landed. Closing PR #3883 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1902994</commentid>
    <comment_count>10</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-10-03 17:36:53 -0700</bug_when>
    <thetext>*** Bug 67950 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1908789</commentid>
    <comment_count>11</comment_count>
    <who name="">carrie.morrisons</who>
    <bug_when>2022-10-27 11:46:08 -0700</bug_when>
    <thetext>I&apos;m seeing issues with videos that do not get cropped unless the parent has it&apos;s own stacking context: http://jsfiddle.net/0Lhy9ex6/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1908790</commentid>
    <comment_count>12</comment_count>
    <who name="">carrie.morrisons</who>
    <bug_when>2022-10-27 11:47:29 -0700</bug_when>
    <thetext>&lt;p&gt;Webkit border-radius clipping issue with overflow and videos&lt;/p&gt;

&lt;div class=outer&gt;
  &lt;video controls=&quot;&quot; width=&quot;250&quot;&gt;
      &lt;source src=&quot;https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4&quot; type=&quot;video/mp4&quot;&gt;
  &lt;/video&gt;
&lt;/div&gt;

Fixed with stacking context
&lt;div class=&quot;outer stack&quot;&gt;
  &lt;video controls=&quot;&quot; width=&quot;250&quot;&gt;
      &lt;source src=&quot;https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4&quot; type=&quot;video/mp4&quot;&gt;
  &lt;/video&gt;
&lt;/div&gt;

&lt;style&gt;
.outer {
    overflow: hidden;
    width: 100px;
    height: 100px;
    background-color: rgb(0,238,228);
    border: 3px solid #000;
    border-radius: 50%;
}

.stack {
  isolation: isolate;
}&lt;/style&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1908800</commentid>
    <comment_count>13</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-10-27 12:17:04 -0700</bug_when>
    <thetext>I am not reproducing that issue in Safari Tech Preview 156. If you can reproduce it there, please file a new bug with a screenshot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1908812</commentid>
    <comment_count>14</comment_count>
    <who name="">carrie.morrisons</who>
    <bug_when>2022-10-27 13:21:37 -0700</bug_when>
    <thetext>Confirming issue resolved in Safari Tech Preview 156. Thankyou!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926958</commentid>
    <comment_count>15</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-01-20 10:25:32 -0800</bug_when>
    <thetext>*** Bug 238983 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1935306</commentid>
    <comment_count>16</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-02-20 15:41:49 -0800</bug_when>
    <thetext>*** Bug 98538 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>184134</attachid>
            <date>2013-01-22 21:37:49 -0800</date>
            <delta_ts>2022-08-31 14:39:58 -0700</delta_ts>
            <desc>test case</desc>
            <filename>url.txt</filename>
            <type>text/plain</type>
            <size>38</size>
            <attacher name="Binyamin">7raivis</attacher>
            
              <data encoding="base64">aHR0cDovL2pzZmlkZGxlLm5ldC9sYXVrc3RlaW4vYmhta2EvNS8=
</data>

          </attachment>
      

    </bug>

</bugzilla>