Bug 5968 - [CG] gradients do not support spreadMethod
Summary: [CG] gradients do not support spreadMethod
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 420+
Hardware: Macintosh OS X 10.4
: P4 Normal
Assignee: Nobody
URL: http://www.w3.org/Graphics/SVG/Test/2...
Depends on:
Reported: 2005-12-06 03:53 PST by Eric Seidel
Modified: 2017-04-27 21:54 PDT (History)
5 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel 2005-12-06 03:53:02 PST
gradients does not support spreadMethod

This is easy to see in this test case:

There is no support for this type of thing in CG, so we would have to do our own.  This is an extremely 
uncommon feature, so this is very low priority.
Comment 1 Eric Seidel 2006-01-26 14:56:30 PST
This is a pretty obscure feature.  It would be nice to support this (and we'll likely have to, since the W3C 1.1 test suite covers it), however it's not particularly high priority work.
Comment 2 Gavin Sherlock 2008-08-01 06:05:34 PDT
Looks like:

spreadMethod=pad is supported, but that:

spreadMethod=reflect and

are buggy
Comment 3 Dirk Schulze 2009-06-13 22:05:16 PDT
Only CG doesn't support spreadMethods.
Comment 4 Simon Fraser (smfr) 2010-01-30 21:24:56 PST
I have some WIP code in bug 28152 to synthesize repeating gradients. Reflection would not be hard either.
Comment 5 Matt Bishop 2011-02-11 18:18:39 PST
I don't think I would call it "extremely" uncommon.  Hard to implement perhaps, but a useful part of SVG that has been in the spec since the beginning.

FWIW, Firefox seems to handle it OK.
Comment 6 Simon Fraser (smfr) 2017-04-27 21:54:10 PDT
Test at LayoutTests/svg/W3C-SVG-1.1/pservers-grad-10-b.svg