My favorites | Sign in
Project Home Downloads Wiki Issues Code Search
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 25334: inset -webkit-box-shadow not adhering to -webkit-border-radius
58 people starred this issue and may be notified of changes. Back to list
Status:  Duplicate
Merged:  issue 46212
Owner:  ----
Closed:  Jun 2010
Cc:  a...@chromium.org, senorbla...@chromium.org

Restricted
  • Only users with Commit permission may comment.


Sign in to add a comment
 
Reported by triune, Oct 20, 2009
Chrome Version       : 4.0.223.6
OS + version : Kubuntu Karmic Koala 9.10
CPU architecture (32-bit / 64-bit): 64
window manager : KDE
URLs (if applicable) : n/a
Behavior in Firefox 3.x (if applicable): the box-shadow inset begins inside 
the border radius
Behavior in Chrome for Windows (optional): n/a/

What steps will reproduce the problem?
1. This div will highlight the problem:

<div style="
-moz-border-radius: 200px; 
-webkit-border-radius: 200px; 
background-color: #777; 
width: 500px; 
height: 200px; 
-webkit-box-shadow: inset 0px 0px 50px rgba(255, 0, 0, 0.5); 
-moz-box-shadow: inset 0px 0px 50px rgba(255, 0, 0, 0.5);
"></div>

2. The red box shadow in Firefox will begin inside the border-radius. 
However, in chrome, it begins inside the box and not the box's border-
radius.

What is the expected result?

See Firefox's rendering.


What happens instead?


Please provide any additional information below. Attach a screenshot
and backtrace if possible.

Oct 20, 2009
#1 triune
Above example rendered in Chromium : 
http://img223.imageshack.us/img223/8109/bug1j.jpg

and Rendered in Firefox 3.5/3.7 :
http://img34.imageshack.us/img34/797/bug2rt.jpg


Oct 20, 2009
#2 triune
This seemed to happen at the same exact time anti-aliasing was added to border-
radiuses. Just more info.
Oct 20, 2009
#3 est...@chromium.org
I assume this is not just Linux. Jon to triage.
Status: Assigned
Owner: j...@chromium.org
Labels: -OS-Linux -Area-Misc OS-All Area-WebKit
Oct 20, 2009
#4 triune
Don't have a mac handy to test, but I would guess so too :)
Oct 21, 2009
#5 ka...@chromium.org
(No comment was entered for this change.)
Labels: Mstone-X
Nov 3, 2009
#6 j...@chromium.org
(No comment was entered for this change.)
Status: Untriaged
Owner: ---
Dec 1, 2009
#7 triune
in Chrome for OSX 4.0.249.12, it renders correctly. However, in 4.0.260.0 under Linux, 
it still renders incorrectly.
Jan 23, 2010
#8 salmonmo...@gmail.com
Also exists under windows:

chromebug.png
2.4 KB   View   Download
Feb 28, 2010
#9 i.bra...@gmail.com
In Chrome for OS X 5.0.335.0 there is no problem.
In Chrome for Windows 4.0.249.89 issue persists.
Screenshot 2010-02-28 at 12.31.05.png
138 KB   View   Download
Feb 28, 2010
#10 triune
Still a problem in Chrome 5.0.335.0 for Linux.
snapshot1.png
74.4 KB   View   Download
Mar 15, 2010
#11 triune
Still a very annoying issue... wish this would be fixed soon in Linux!
Apr 11, 2010
#12 cjense...@gmail.com
Windows nightly still has this bug
Apr 27, 2010
#13 senorbla...@chromium.org
(No comment was entered for this change.)
Cc: a...@chromium.org
Apr 27, 2010
#14 senorbla...@chromium.org
(No comment was entered for this change.)
Cc: senorbla...@chromium.org
Apr 27, 2010
#15 senorbla...@chromium.org
 Issue 35362  has been merged into this issue.
Jun 3, 2010
#16 thomshouse@gmail.com
Just wanted to add that I'm getting this too, on a Windows XP machine.  Safari renders 
it properly, but both the stable and dev builds of Chrome have this bug.

Interestingly, it appears okay in Chrome on my Macs at home.
Jun 17, 2010
#17 sam.lb.h...@gmail.com
I'm also getting this same issue. Please fix this soon.
Jun 20, 2010
#18 dglazkov@chromium.org
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 46212
Jul 28, 2010
#19 lorin.ta...@gmail.com
I am getting this issue on Chrome 5.0.375.125 on Windows 7. Does not affect Chrome 5.0.375.99 on Mac.

If your radius is small enough, you can hack around it like this:

-moz-border-radius: 7px;
-webkit-border-radius: 7px;
-moz-box-shadow: rgba(0, 0, 0, 0.4) 1px 1px 4px 0 inset;
-webkit-box-shadow: rgba(0, 0, 0, 0.4) 1px 1px 4px 0 inset;
border: 2px solid #fff;
margin: -2px;

Since there's no way to feature detect, I detect client OS and browser, then tack on a class to the HTML tag. Not my favorite implementation, but it works.
Aug 16, 2010
#20 luis...@gmail.com
I'm also getting this on Chrome 5.0.375.126, Windows 7.
It looks ok on Safari.
Sep 14, 2010
#21 welshy1...@gmail.com
I'm getting this on Chrome 6.0.472.55, Windows 7.
Sep 14, 2010
#22 balo...@gmail.com
The same thing on Chrome 7.0.517.0 dev, Windows 7.
Sep 16, 2010
#23 ian.ha...@gmail.com
I'm getting this on Chrome 6.0.472.59, Windows Vista.
Sep 24, 2010
#24 dimitriehoekstra
why isn't this fixed yet? this is such an annoying glitch! windows here!
Oct 4, 2010
#25 ian.ha...@gmail.com
Seriously, fix this. 7.0.517.24, Windows Vista.
Oct 4, 2010
#26 i.bra...@gmail.com
Will IE9 go final beating Chrome on this one? lol
Oct 4, 2010
#27 sam.lb.h...@gmail.com
Sense there's been two comments on this today, I'll be annoying and do a third one. After all, that's why they call them "bugs". ¦D
Oct 4, 2010
#28 triune
should have been merged into this bug... http://goo.gl/noqX 

so you can stop posting here :P
Dec 13, 2010
#29 nextex...@gmail.com
Chrome is now on version 8 ad this bug is still not squashed. =/ Disappointing.
Dec 13, 2010
#30 sam.lb.h...@gmail.com
Is there a good reason why this bug has been hanging around for over a year? This is very, very bad. 

If I knew anything about the chromium source I would probably help fix it. Too bad I'm just a plain old web developer.
Dec 15, 2010
#31 gran...@gmail.com
Any updates yet?  Getting this on Windows XP sp2 Chrome 8.0.552.224.
Dec 15, 2010
#32 sam.lb.h...@gmail.com
Maybe we should get Anonymous to flood this issue with comments until the Chrome team as given it some attention. xP

Just kidding.
Jan 24, 2011
#33 bramgoff...@gmail.com
Is this so hard, the IE testing center is laughing at us becasue of this.
Chrome 10 dev and stillnot fixed... :( sad
Feb 10, 2011
#34 e.i.a.lo...@gmail.com
Google chrome should just get their act together it is a bug that ruins many websites, especialy ones with custom buttons
Its not working on Windows XP chrome 9.0.597.84.
Feb 16, 2011
#35 yill...@gmail.com
please get it fix.. this is very common design to have border radius + box shadow inset... for bevel a button
Feb 19, 2011
#36 ricklam...@gmail.com
And it is fixed as of 10.0.648.82 on Windows 7 32-bit
Oct 12, 2012
#37 bugdroid1@chromium.org
This issue has been closed for some time. No one will pay attention to new comments.
If you are seeing this bug or have new data, please click New Issue to start a new bug.
Labels: Restrict-AddIssueComment-Commit
Mergedinto: chromium:46212
Mar 10, 2013
#38 bugdroid1@chromium.org
(No comment was entered for this change.)
Labels: -Area-WebKit Cr-Content
Apr 5, 2013
#39 bugdroid1@chromium.org
(No comment was entered for this change.)
Labels: -Cr-Content Cr-Blink
Sign in to add a comment

Powered by Google Project Hosting