RESOLVED FIXED 12062
WebCore does not handle CSS-specified fill fallback correctly
https://bugs.webkit.org/show_bug.cgi?id=12062
Summary WebCore does not handle CSS-specified fill fallback correctly
Eric Seidel (no email)
Reported 2007-01-01 16:43:02 PST
The SVG spec says that when fill is specified fill="url(#foo) green" if #foo is not found, then "green" is used. if "green" is not found, the document is in error. WebKit (intentionally) avoids ever putting the document in error. And instead falls back to the default fill (black) when a fill URI is invalid. However, in this case, WebKit should first check to see if any other fills were specified first. In this case, it it should be green. See test case. Opera renders it correctly. (Note, this can't be done by the CSS parser, as the uri might not resolve at that time. the SVGPaint needs to carry this additional information about fallback.
Attachments
test case (167 bytes, image/svg+xml)
2007-01-01 16:43 PST, Eric Seidel (no email)
no flags
First attempt (92.30 KB, patch)
2007-06-23 08:26 PDT, Rob Buis
mjs: review+
Eric Seidel (no email)
Comment 1 2007-01-01 16:43:37 PST
Created attachment 12150 [details] test case
Rémi Zara
Comment 2 2007-02-03 03:23:54 PST
This is also the case for stroke
Rob Buis
Comment 3 2007-06-23 08:26:24 PDT
Created attachment 15199 [details] First attempt I don't know why I kept this on my HD so long, seems simple now :) Cheers, Rob.
Maciej Stachowiak
Comment 4 2007-06-26 00:13:07 PDT
Comment on attachment 15199 [details] First attempt seems simple enough... r=me
Rob Buis
Comment 5 2007-06-26 00:48:51 PDT
Landed in r23788.
Note You need to log in before you can comment on or make changes to this bug.