Bug 12203 - -webkit-box-shadow fails on divs with opacity or overflow settings
Summary: -webkit-box-shadow fails on divs with opacity or overflow settings
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 420+
Hardware: Mac (PowerPC) OS X 10.4
: P2 Normal
Assignee: mitz
URL:
Keywords:
Depends on: 12729
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-10 13:58 PST by Andreas Amann
Modified: 2007-05-19 23:20 PDT (History)
1 user (show)

See Also:


Attachments
Test case from Comment #0 (991 bytes, text/html)
2007-02-10 17:49 PST, David Kilzer (:ddkilzer)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Amann 2007-01-10 13:58:05 PST
The following HTML shows that the -webkit-box-shadow does not work on divs where either opacity or overflow values are specified as well - both cases end up with a cosmetic glitch in the bottom right corner (which is visible due to the -webkit-corner-radius property).

Tested with latest WebKit nightly as of 01/10/2007

<html>
<head>
<style type="text/css">
#Shadow {
	padding: 2px;
	border: rgb(76, 70, 52) 1px solid;
	color: #FFFFFF;
	background-color: rgb(125, 115, 84);
	-webkit-border-radius: 6px;
	-webkit-box-shadow: 6px 6px 6px #555555;
}
#ShadowOpacity {
	padding: 2px;
	border: rgb(76, 70, 52) 1px solid;
	color: #FFFFFF;
	background-color: rgb(125, 115, 84);
	opacity: 0.85;
	-webkit-border-radius: 6px;
	-webkit-box-shadow: 6px 6px 6px #555555;
}
#ShadowOverflow {
	padding: 2px;
	border: rgb(76, 70, 52) 1px solid;
	color: #FFFFFF;
	overflow: auto;
	background-color: rgb(125, 115, 84);
	-webkit-border-radius: 6px;
	-webkit-box-shadow: 6px 6px 6px #555555;
}
</style>
</head>
<body>
<div id="Shadow">shadow works</div>
<br />
<div id="ShadowOpacity">no shadow with opacity</div>
<br />
<div id="ShadowOverflow">no shadow with overflow</div>
</body>
</html>
Comment 1 David Kilzer (:ddkilzer) 2007-02-10 17:49:49 PST
Created attachment 13113 [details]
Test case from Comment #0
Comment 2 mitz 2007-05-18 09:26:36 PDT
The patch attached to bug 12729 fixes this bug as well.
Comment 3 mitz 2007-05-19 23:20:22 PDT
Fixed in r21605.