Bug 12498
Summary: | stop-color and stop-opacity inherited when they should not be | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | Keywords: | EasyFix |
Priority: | P2 | ||
Version: | 420+ | ||
Hardware: | Mac | ||
OS: | OS X 10.4 | ||
URL: | http://www.w3.org/Graphics/SVG/Test/20061213/htmlEmbedHarness/full-pservers-grad-18-b.html |
Eric Seidel (no email)
This might be very easy to fix. I'm not sure how easy it is in our CSS system to have CSS properties which only explicitly inherit.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Eric Seidel (no email)
I have what should be a fix in my local tree, but something's not quite right. Still investigating.
Eric Seidel (no email)
Actually, I believe the test is bogus.
http://www.w3.org/Graphics/SVG/Test/20061213/htmlEmbedHarness/full-pservers-grad-18-b.html
the test reads:
<g stop-color='red'>
<linearGradient>
<stop stop-color='inherit'>
However, stop-color does not inherit. So <linearGradient> ends up with the default stop color (black) which is what the <stop> element then inherits from. the CSS inherit keyword does not cause the style resolve to jump to the grandparent, especially since linearGradient is a styled element...
This is just a bogus test. Oliver or mjs (or whoever has contact with the SVG working group) should complain to them.
Eric Seidel (no email)
ed_work in #svg agrees with our interpretation. We expect the test case will be changed to correct this error in the next release.
Rob Buis
As Eric said, probably wrong test, closing for now.