Bug 103730

Summary: Border radius has no effect on clipped background
Product: WebKit Reporter: Andrej Č. <andrej.cremoznik>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: bdakin, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Andrej Č.
Reported 2012-11-30 04:07:36 PST
Here's a fiddle showing the problem: http://jsfiddle.net/Hgb4Y/ So what's going on: 1. The box has a border radius of 50% making it a circle 2. The box has a background color 3. I want this circle to have a semi-transparent border so I apply a border rule with rgba color 4. Problem - the circles's background shows through the border, but I want the border outside. 5. When I apply background-clip padding-box I should get the desired result, however in webkit the clipped background isn't round anymore. In case the fiddle get deleted, here's the relevant css bit: .test { width: 200px; height: 200px; margin: 100px; background: red; border-radius: 50%; border: 30px solid rgba(0,0,0,0.5); background-clip: padding-box; }
Attachments
Simon Fraser (smfr)
Comment 1 2012-11-30 11:45:33 PST
This is fixed on TOT, I think by bug 23166. *** This bug has been marked as a duplicate of bug 23166 ***
Note You need to log in before you can comment on or make changes to this bug.