Fill defaults to black, stroke to none. Whether invalid values are ignored or treated as black I don't remember. In general the SVG spec is useless in this regard.
http://www.w3.org/TR/SVG/painting.html#FillProperties http://www.w3.org/TR/SVG/painting.html#StrokeProperties -eric On Mon, Jun 14, 2010 at 4:00 AM, Yuzo Fujishima <y...@google.com> wrote: > Hi, SVG gurus, > I have a question regarding LayoutTests/svg/custom/invalid-fill-hex.svg . > It contains: > <rect width="100" height="100" fill="#ff" stroke="#0"/> > From the comment there I understand that the rect should be filled with > black. > But how about the stroke? > I guess black stroke should be rendered, because #0 is also invalid. > Is it true? The current test data (expected output) doesn't contain the > stroke. > I'm asking this https://bugs.webkit.org/show_bug.cgi?id=24742 fixes hex > color parsing > and as a result, the stroke above starts to be rendered with black. > I'd like to find out whether the above test (or test data) is wrong or I am > making a mistake. > I think we should either: > Rewrite > <rect width="100" height="100" fill="#ff" stroke="#0"/> > to > <rect width="100" height="100" fill="#ff"> > or rebaseline the test data. Which do you prefer (assuming the test needs to > be changed?) > Yuzo > > > _______________________________________________ > webkit-dev mailing list > webkit-dev@lists.webkit.org > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev > > _______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev