[Webkit-unassigned] [Bug 46112] Colors seem to be parsed using HTML quirks in SVG attributes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 3 14:35:02 PST 2010


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





--- Comment #17 from Eric Seidel <eric at webkit.org>  2010-12-03 14:35:01 PST ---
(In reply to comment #16)
> Uh.... no.  SVG is not part of HTML, and in particular the syntax of SVG attributes is defined by SVG, not by HTML.

My understanding Boris it that SVG is "part of" HTML5.  However you are correct that semantics of the individual elements (including attribute parsing) are left to the SVG specification:
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-map-element.html#svg-0

So if I have svg content in a HTML document and wish to have a color specified how many different color parsing rules are in effect?

Obviously with this change, setting a color outside of the SVG content (which may be inherited by the SVG content using currentColor) is governed by HTML quirks.

What about setting via style="", or via svgElement.fill= or svgElement.setAttribute("fill", quirkyColor);

I assume that style is governed by whatever CSS rules quirks are in effect for the document?  Or is setting style= dependent on the element type?  (in which case that seems strange).   And I assume setting fill= or via setAttribute should be identical and governed by SVG's (non-quriky) color parser?

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