Summary: | Need function for manual style-resolution for things like gradient stops | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | 420+ | ||
Hardware: | Mac | ||
OS: | OS X 10.4 |
Description
Eric Seidel (no email)
2007-01-01 18:52:35 PST
We should chat about this at some point. I don't think you need a new function necessarily. I'm not sure I'm able to come up with a test case to demonstrate this. This one seems to work fine in TOT: <svg xmlns="http://www.w3.org/2000/svg" style='color: green'> <defs> <linearGradient id='gradient' x2='5'> <stop offset='0' stop-color='currentColor' /> <stop offset='1' stop-color='red' /> </linearGradient> </defs> <rect fill="url(#gradient)" width='100px' height='100px' /> </svg> I still think a function do use to do this more cleanly would be nice. An alternative way to fix all this is to actually make gradient stops have real renderers with real styles, such as suggested in: http://bugs.webkit.org/show_bug.cgi?id=12193 This would also require <defs> to have a renderer, as mentioned in: http://bugs.webkit.org/show_bug.cgi?id=12207 *** Bug 12545 has been marked as a duplicate of this bug. *** |