RESOLVED WORKSFORME 63952
background clips incorrectly with border-radius rgba border and box-shadow
https://bugs.webkit.org/show_bug.cgi?id=63952
Summary background clips incorrectly with border-radius rgba border and box-shadow
Pam Griffith
Reported 2011-07-05 13:52:12 PDT
Created attachment 99740 [details] Screenshots of css producing the bug in Firefox, Opera, IE, and Chrome With border-radius and -webkit-background-clip:padding-box, the background should clip on the inside of the rounded corner. However, when I use a semi-transparent color (with rgba) for the border and add a box-shadow, I can see the box background beneath the corner. It behaves correctly in Firefox, Opera, and IE9 (screenshot attached), but incorrectly in Chrome 14.0.803.0 dev-m and Safari 5.0.5.
Attachments
Screenshots of css producing the bug in Firefox, Opera, IE, and Chrome (10.83 KB, image/jpeg)
2011-07-05 13:52 PDT, Pam Griffith
no flags
Test case (559 bytes, text/html)
2011-07-05 13:52 PDT, Pam Griffith
no flags
ToT screenshot (Safari, Retina display) (7.79 KB, image/png)
2013-01-08 13:27 PST, Alexey Proskuryakov
no flags
Test Page Zoomed (24.69 KB, image/png)
2014-04-03 11:09 PDT, Nathan Hammond
no flags
Pam Griffith
Comment 1 2011-07-05 13:52:59 PDT
Created attachment 99741 [details] Test case
Alexey Proskuryakov
Comment 2 2011-07-06 11:49:51 PDT
I wonder how many of these are full dupes: bug 62639, bug 61587, bug 53257, bug 50072, bug 38787, bug 32793, bug 23166...
Alice Boxhall
Comment 3 2011-07-06 20:55:44 PDT
*** Bug 53257 has been marked as a duplicate of this bug. ***
Alice Boxhall
Comment 4 2011-07-06 21:15:06 PDT
I don't think any of those are full duplicates (I did think Bug 53257 was but now I don't think so). Confirmed on Chrome 14.0.803.0 dev, and WebKit nightly Version 5.0.5 (6533.21.1, r90503).
Pam Griffith
Comment 5 2011-07-07 09:44:20 PDT
It's possible that this is 2 bugs. I think the outer box-shadow may also be drawn under the rgba border all the way around in webkit and not in other browsers.
Nathan Hammond
Comment 6 2013-01-08 13:10:58 PST
This issue does not appear in the WebKit nightlies. I recommend it for closing. As a (dirty) workaround for just the background-clip: padding-box; problem for released versions of WebKit, here is some CSS. ul { border: 1px solid rgba(0,0,0,.3); border-radius: 8px; position: relative; list-style: none; } ul::before { content: ''; display: block; width: 100%; height: 100%; border-radius: 7px; background: red; position: absolute; z-index: 0; } li { position: relative; } Please wash your hands after use.
Alexey Proskuryakov
Comment 7 2013-01-08 13:26:13 PST
The progression happened in <http://trac.webkit.org/r131402>. The test case doesn't look quite good yet though (on a Retina MBP), as there is some badness in top right and bottom right corners. Perhaps that's a separate bug. > I wonder how many of these are full dupes: bug 62639, bug 61587, bug 53257, bug 50072, bug 38787, bug 32793, bug 23166... Will need to re-check these too.
Alexey Proskuryakov
Comment 8 2013-01-08 13:27:30 PST
Created attachment 181745 [details] ToT screenshot (Safari, Retina display)
Radar WebKit Bug Importer
Comment 9 2013-01-08 14:54:29 PST
Justin Novosad
Comment 10 2013-01-08 15:36:42 PST
This is possibly a duplicate of bug 106373.
Nathan Hammond
Comment 11 2014-04-03 11:09:35 PDT
Created attachment 228523 [details] Test Page Zoomed This is a screen capture of the test page rendered incorrectly at full zoom. You can clearly see what appear to be rounding errors. This does not occur in Firefox.
Nathan Hammond
Comment 12 2014-04-03 11:11:49 PDT
Also worth noting, the issue does not appear in Chrome either.
zalan
Comment 13 2014-04-03 18:59:39 PDT
Might be related to bug 131204. I'll retest is after filters get subpixelished.
zalan
Comment 14 2015-07-28 18:22:48 PDT
I can't repro this with r187532.
Note You need to log in before you can comment on or make changes to this bug.