[webkit-dev] [svg] rect with invalid stroke value

Yuzo Fujishima yuzo at google.com
Mon Jun 14 04:00:05 PDT 2010


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100614/18862089/attachment.html>


More information about the webkit-dev mailing list