[Webkit-unassigned] [Bug 40985] gradient stroke on lines does not work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 26 07:23:09 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=40985





--- Comment #3 from Dirk Schulze <krit at webkit.org>  2010-06-26 07:23:10 PST ---
(In reply to comment #2)
> (In reply to comment #1)
> > I'm a bit confused, that the other browsers (Firefox, Opera) draw the stroke with the gradient. An object with a one dimensional boudingBox (height or width = 0) shouldn't be stroked with a gradient, but instead use a fallback color or ignore stroke at all. And a line doesn't have a height. We use black instead of ignoring the stroke, because of compatibillity reasons to older Firefox and Opera browsers.
> 
> The gradient here is specified with gradientUnits="userSpaceOnUse".
> At the beginning of SVG 1.1 section 13.2.1 is written that gradients apply to fill and stroke properties of graphics elements. There is no mention for exceptions.
> 
> Where exactly the SVG specification effectively states that gradients do not apply to lines?

Sorry, I'm not sure where to find this paragraph atm. Maybe the following test can help you more: http://www.w3.org/Graphics/SVG/Test/20061213/htmlObjectHarness/full-pservers-grad-17-b.html The gradient is not drawn on all objetcs, since some of them have a one dimensional objectBoundingBox (width or height == 0).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list