[Webkit-unassigned] [Bug 38878] New: Unrecognized arguments cause multiple box-shadows to fail.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 10 17:57:00 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=38878
Summary: Unrecognized arguments cause multiple box-shadows to
fail.
Product: WebKit
Version: 525.x (Safari 3.2)
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: cyberskull at mac.com
Created an attachment (id=55629)
--> (https://bugs.webkit.org/attachment.cgi?id=55629)
Shadow example
The "inset" argument for -webkit-box-shadow (implemented in the nightly) causes the entire statement to break in Safari.
For example, taken from <http://dev.opera.com/articles/view/beautiful-ui-styling-with-css3-text-shadow-box-shadow-and-border-radius/> (where I learned about inset in the first place):
div {
width: 100px;
height: 100px;
margin: 10px;
padding: 10px;
background: #6fb2e5;
box-shadow: 0 1px 5px #0061aa, inset 0 10px 20px #b6f9ff;
-o-box-shadow: 0 1px 5px #0061aa, inset 0 10px 20px #b6f9ff;
-webkit-box-shadow: 0 1px 5px #0061aa, inset 0 10px 20px #b6f9ff; /*The inset argument here causes all of the shadows to fail in Safari 4 */
-moz-box-shadow: 0 1px 5px #0061aa, inset 0 10px 20px #b6f9ff;
}
The workaround for the designers is simple enough, they just need to change the declaration to:
-webkit-box-shadow: 0 1px 5px #0061aa; /* Working box shadow */
-webkit-box-shadow: 0 1px 5px #0061aa, inset 0 10px 20px #b6f9ff !important; /* inset shadow for compliant versions of webkit */
I don't know if inset shadows are ready to be included in the next release of Safari, but I was wondering if some change could be made to the parser so that bad arguments only cause that particular instance to fail instead of all of the instances in a declaration?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list