<?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>30475</bug_id>
          
          <creation_ts>2009-10-16 21:01:04 -0700</creation_ts>
          <short_desc>Image is not clipped by border-radius</short_desc>
          <delta_ts>2022-09-24 09:46:36 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Nathan Vander Wilt">natevw</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ivan.enderlin</cc>
    
    <cc>lea</cc>
    
    <cc>moz</cc>
    
    <cc>natevw</cc>
    
    <cc>peter</cc>
    
    <cc>rick2910</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>155360</commentid>
    <comment_count>0</comment_count>
      <attachid>41351</attachid>
    <who name="Nathan Vander Wilt">natevw</who>
    <bug_when>2009-10-16 21:01:04 -0700</bug_when>
    <thetext>Created attachment 41351
Shows ugliness when border is added to border-radius image

Image corner rounding in Safari 4.0.3 is still wrong. This is related to https://bugs.webkit.org/show_bug.cgi?id=24880, which has two requests (mine and another) to be reopened. Maybe a new bug is more appropriate:


While an image without a border now rounds nicely, if I add a border things get
icky. The image is getting clipped to the outside of the border, rather than
the inside. This means either the image still has square corners showing (if
the border is thicker than the radius) or the border gets drawn over by the
image (if the border is thinner than the radius).

I&apos;d expect the image edge to always follow the inside of the border, as the
workaround in the OP&apos;s link shows. (Caveat: I&apos;m not a CSS guru, so maybe the
standard requires clipping to the outside edge of the border. I sure hope not,
as this is terribly ugly.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>364861</commentid>
    <comment_count>1</comment_count>
    <who name="Lea Verou">lea</who>
    <bug_when>2011-03-09 16:10:40 -0800</bug_when>
    <thetext>This bug still hasn&apos;t been fixed. I would suggest its title to be changed to &quot;Replaced content gets clipped according to border box&quot;.

The spec clearly dictates that replaced content should be clipped according to the content box: &quot;The content of replaced elements is always trimmed to the content edge curve.&quot; (http://www.w3.org/TR/css3-background/#corner-clipping)

IE9 and Firefox 4 both get this right.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>464777</commentid>
    <comment_count>2</comment_count>
    <who name="Rick van de Westelaken">rick2910</who>
    <bug_when>2011-09-09 07:27:46 -0700</bug_when>
    <thetext>I can confirm this issue, which Opera 11.51 is also rendering wrong. See http://rivierenlandzakelijk.nl/ (border around the map) for an example.

Chrome: 15.0.874.6 Canary build</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>672817</commentid>
    <comment_count>3</comment_count>
    <who name="j.j.">moz</who>
    <bug_when>2012-07-18 15:09:31 -0700</bug_when>
    <thetext>Duplicate of bug 83206?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1900898</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-24 09:46:36 -0700</bug_when>
    <thetext>I am not able to reproduce this bug in Safari 16 and all other browsers (Chrome Canary 108 and Firefox Nightly 107) render this same as well.

In case if I am wrong, please reopen but I am marking this as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!

JSFiddle Link (with HTTP updated to HTTPS) - https://jsfiddle.net/zL1gnsqe/show</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>41351</attachid>
            <date>2009-10-16 21:01:04 -0700</date>
            <delta_ts>2009-10-16 21:01:04 -0700</delta_ts>
            <desc>Shows ugliness when border is added to border-radius image</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>691</size>
            <attacher name="Nathan Vander Wilt">natevw</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5Pgo8ZGl2Pgo8aW1nIHN0eWxlPSItd2Via2l0LWJvcmRlci1yYWRpdXM6MTBw
eDsiCnNyYz0iaHR0cDovL3VwbG9hZC53aWtpbWVkaWEub3JnL3dpa2lwZWRpYS9jb21tb25zL3Ro
dW1iLzIvMjkvU29saWRfZ3JlZW4uc3ZnLzIwMHB4LVNvbGlkX2dyZWVuLnN2Zy5wbmciPgo8aW1n
IHN0eWxlPSItd2Via2l0LWJvcmRlci1yYWRpdXM6NTBweDsiCnNyYz0iaHR0cDovL3VwbG9hZC53
aWtpbWVkaWEub3JnL3dpa2lwZWRpYS9jb21tb25zL3RodW1iLzIvMjkvU29saWRfZ3JlZW4uc3Zn
LzIwMHB4LVNvbGlkX2dyZWVuLnN2Zy5wbmciPgo8L2Rpdj4KPGRpdj4KPGltZyBzdHlsZT0iLXdl
YmtpdC1ib3JkZXItcmFkaXVzOjEwcHg7IGJvcmRlcjogNXB4IHNvbGlkIGJsYWNrIgpzcmM9Imh0
dHA6Ly91cGxvYWQud2lraW1lZGlhLm9yZy93aWtpcGVkaWEvY29tbW9ucy90aHVtYi8yLzI5L1Nv
bGlkX2dyZWVuLnN2Zy8yMDBweC1Tb2xpZF9ncmVlbi5zdmcucG5nIj4KPGltZyBzdHlsZT0iLXdl
YmtpdC1ib3JkZXItcmFkaXVzOjUwcHg7IGJvcmRlcjogNXB4IHNvbGlkIGJsYWNrIgpzcmM9Imh0
dHA6Ly91cGxvYWQud2lraW1lZGlhLm9yZy93aWtpcGVkaWEvY29tbW9ucy90aHVtYi8yLzI5L1Nv
bGlkX2dyZWVuLnN2Zy8yMDBweC1Tb2xpZF9ncmVlbi5zdmcucG5nIj4KPC9kaXY+CjwvYm9keT4K
PC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>