W3C home > Mailing lists > Public > public-svg-wg@w3.org > October to December 2010

gradients with no offset=0 or offset=1 stops

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 27 Oct 2010 15:23:16 +1300
To: public-svg-wg@w3.org
Message-ID: <20101027022316.GJ6526@wok.mcc.id.au>
Is it defined what the rendering behaviour is of gradients that don’t
have a stop at offset 0 or 1?  Test:


There are two subtests there.  The top one uses the default
spreadMethod="pad", while the bottom one has spreadMethod="repeat".

The definition of spreadMethod says:

  Indicates what happens if the gradient starts or ends inside the bounds
  of the target rectangle.

Does the gradient starting or ending inside the bounds of the target
rectangle include the parts of the gradient between 0 & the first stop
and the last stop & 1?

All implementations I tested (Firefox, Chrome, Opera, IE, Batik, Safari)
rendered the top rectangle as if it had offset 0 = black and offset 1 =
lime.  This was the rendering for the bottom rectangle, too, except for
Firefox which has offset 0 = offset 1 = #007f00 (approx), which is kind
of weird.

Cameron McCormack ≝ http://mcc.id.au/
Received on Wednesday, 27 October 2010 02:24:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:29:44 UTC