<?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>33621</bug_id>
          
          <creation_ts>2010-01-13 13:21:07 -0800</creation_ts>
          <short_desc>border-radius incomplete/rough causing rendering issues</short_desc>
          <delta_ts>2010-06-04 19:54:38 -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>DUPLICATE</resolution>
          <dup_id>21819</dup_id>
          
          <bug_file_loc>http://mageprojects.com/purecss/webkit_border_radius_bug/</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="Mark">markg85</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dglazkov</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>180376</commentid>
    <comment_count>0</comment_count>
    <who name="Mark">markg85</who>
    <bug_when>2010-01-13 13:21:07 -0800</bug_when>
    <thetext>Tested with chromium build 36133

Hi,

The issue is (probably) with -webkit-border-radius. I already noticed that the resulting radius render seems a bit rough compared to how firefox renders it. That alone wasn&apos;t an issue but there is an issue when you for example use a white to red gradient. Then that rough border radius will get a few pixels that are drawn in red.

Here is the Proof of Concept: http://mageprojects.com/purecss/webkit_border_radius_bug/

index.html
===================
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot;&gt;
 &lt;head&gt;
 &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
 &lt;title&gt;testing pure css&lt;/title&gt;
 &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; type=&quot;text/css&quot; /&gt;
 &lt;/head&gt;
 &lt;body&gt;
	&lt;div id=&quot;container&quot;&gt;

		&lt;div id=&quot;testbox&quot;&gt;
		&lt;br /&gt;
		&lt;/div&gt;
	&lt;/div&gt;
 &lt;/body&gt;
&lt;/html&gt;

style.css
===================
div#testbox
{
	border: 1px solid #bdbcbd;
	position: absolute;
	left: 0px;
	right: 0px;
	top: 0px;
	bottom: 0px;
	border-radius: 10px;
	-moz-border-radius: 10px;
	background: -moz-linear-gradient(-90deg, #ffffff 60%, #ff0000);
	background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), color-stop(60%, #ffffff), to(#ff0000));
}

div#container
{
	border: 2px solid white;
	-moz-border-radius: 12px;
	border-radius: 12px;
	-webkit-box-shadow: 0 0 4px #bdbdbd;
	-moz-box-shadow: 0 0 3px #bdbdbd;
	width: 502px;
	height: 132px;
	position: relative;
}

Compare it with how firefox (&gt;= 3.6) renders it.
Also it seems like the borders from border-radius are anti-aliased in firefox but are not in webkit. Perhaps it&apos;s nice to anti-alias it in webkit as well?

Ragards,
Mark</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>234481</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2010-06-04 19:54:38 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 21819 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>