[Webkit-unassigned] [Bug 58531] Handling invalid colors in SVG

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Apr 24 00:54:48 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=58531


Robert Longson <longsonr at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |longsonr at gmail.com




--- Comment #8 from Robert Longson <longsonr at gmail.com>  2011-04-24 00:54:48 PST ---
(In reply to comment #3)
> 
> Secondly:
> Unfortunatelly I still haven't find any rule in the spec what to do if we have an invalid color. I just followed the behaviour of the other browsers (Opera, Firefox).
> 

Invalid colours are ignored. This is not in the SVG spec but comes from CSS1 and SVG combined really. fill and stroke are mapped to CSS in SVG full and CSS1 says that if you can't parse anything it's ignored. Therefore you just treat the element as not having a fill or stroke attribute. For fill the lacuna value is black, for stroke it's none.

There's a w3c test here: http://dev.w3.org/SVG/profiles/1.1F2/test/svg/styling-pres-01-t.svg

-- 
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