[Webkit-unassigned] [Bug 58531] Handling invalid colors in SVG
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 28 06:25:57 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=58531
--- Comment #11 from Robert Longson <longsonr at gmail.com> 2011-04-28 06:25:57 PST ---
(In reply to comment #10)
> I saw the behavior of the CSS, in my opinion it is relevant. I would illustrated:
> <html>
> <style type="text/css">
> body {
> background-color:red;
> }
> </style>
> <body style="background-color:green">
>
> </body>
> </html>
>
> What dou you think of it?
I think background-color is a bad case to pick as the initial value is transparent (http://www.w3.org/TR/CSS2/colors.html#propdef-background-color). On top of that you don't have any inheritance in your example above as you've got body both times. Let's say you had this though...
<html>
<style type="text/css">
body {
background-color:red;
}
</style>
<body>
<div style="width:100%;height:100%;background-color:INVALIDCOLOR">
</body>
</html>
The div has an invalid background-color so that becomes background-color: transparent and then the body shows through. So whether you had background-color inherit or use the lacuna value, you'd get the same visual result.
--
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