<?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>77572</bug_id>
          
          <creation_ts>2012-02-01 12:50:29 -0800</creation_ts>
          <short_desc>content inside element with border-radius is not clipped to border-radius when overflow: hidden is set.</short_desc>
          <delta_ts>2022-07-27 10:30:23 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>http://jsfiddle.net/CTS36/7/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dan Ionut Dumitriu">ionut90ro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>7raivis</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>bmcouto</cc>
    
    <cc>gabriel.schulhof</cc>
    
    <cc>idoros</cc>
    
    <cc>jaepark</cc>
    
    <cc>mrwolfgraphics</cc>
    
    <cc>rniwa</cc>
    
    <cc>robin.webkit</cc>
    
    <cc>shanestephens</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>547301</commentid>
    <comment_count>0</comment_count>
    <who name="Dan Ionut Dumitriu">ionut90ro</who>
    <bug_when>2012-02-01 12:50:29 -0800</bug_when>
    <thetext>Image is not cropped by the border-radius of the parent element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>552765</commentid>
    <comment_count>1</comment_count>
    <who name="Shane Stephens">shanestephens</who>
    <bug_when>2012-02-08 19:31:36 -0800</bug_when>
    <thetext>http://www.w3.org/TR/css3-background/#corner-clipping

&quot;A box&apos;s backgrounds, but not its border-image, are clipped to the appropriate curve (as determined by ‘background-clip’). Other effects that clip to the border or padding edge (such as ‘overflow’ other than ‘visible’) also must clip to the curve. The content of replaced elements is always trimmed to the content edge curve.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>584923</commentid>
    <comment_count>2</comment_count>
    <who name="Shane Stephens">shanestephens</who>
    <bug_when>2012-03-21 20:25:45 -0700</bug_when>
    <thetext>*** Bug 81494 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>584939</commentid>
    <comment_count>3</comment_count>
    <who name="Shane Stephens">shanestephens</who>
    <bug_when>2012-03-21 20:50:57 -0700</bug_when>
    <thetext>*** Bug 80162 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>587188</commentid>
    <comment_count>4</comment_count>
    <who name="Gabriel Schulhof">gabriel.schulhof</who>
    <bug_when>2012-03-24 15:35:49 -0700</bug_when>
    <thetext>&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;Clipping Bug&lt;/title&gt;
  &lt;style&gt;
.rounded-corners {
  position: relative;
  width: 120px;
  height: 80px;
  border: 10px solid black;
  border-radius: 30px;
  overflow: hidden;
}

.inner-box {
  position: absolute;
  width: 50px;
  height: 50px;
  background: red;
  left: -20px;
  top: -20px;
}
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;div class=&quot;rounded-corners&quot;&gt;
    &lt;div class=&quot;inner-box&quot;&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>587189</commentid>
    <comment_count>5</comment_count>
    <who name="Gabriel Schulhof">gabriel.schulhof</who>
    <bug_when>2012-03-24 15:36:16 -0700</bug_when>
    <thetext>The previous illustrates the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>587190</commentid>
    <comment_count>6</comment_count>
    <who name="Gabriel Schulhof">gabriel.schulhof</who>
    <bug_when>2012-03-24 15:38:25 -0700</bug_when>
    <thetext>My platform is Linux i386 running Google Chrome 17.0.963.83 ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>678924</commentid>
    <comment_count>7</comment_count>
    <who name="Binyamin">7raivis</who>
    <bug_when>2012-07-25 23:43:36 -0700</bug_when>
    <thetext>Still not solved on Chrome 22.0.1217.0 canary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>721419</commentid>
    <comment_count>8</comment_count>
    <who name="Ido Rosenthal">idoros</who>
    <bug_when>2012-09-15 04:05:40 -0700</bug_when>
    <thetext>same bug as #72619.. please fix it</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1042363</commentid>
    <comment_count>9</comment_count>
    <who name="Bruno Couto">bmcouto</who>
    <bug_when>2014-10-17 05:02:35 -0700</bug_when>
    <thetext>Still present on Safari for IOS8 and OS X 10.10 Yosemite. Please fix this ASAP</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1887086</commentid>
    <comment_count>10</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-27 09:51:23 -0700</bug_when>
    <thetext>I took test case from Comment 04 and changed it into JSFiddle below:

Link - https://jsfiddle.net/seojxdn4/show

I am not able to reproduce this bug in above test case and it renders same across all browsers (Safari 15.6, Chrome Canary 106 and Firefox Nightly 105 on macOS 12.5).

Plus now image is cropped by border-radius - I have updated URL based JSfiddle to below:

Link - https://jsfiddle.net/Lwrca4je/1/show

It is working as intended across all browsers. I think this is fixed along the way and this can be marked as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>