W3C home > Mailing lists > Public > www-svg@w3.org > July 2011

Re: stroke=gradient for lines or horizontal paths

From: Alex Danilo <alex@abbra.com>
Date: Thu, 14 Jul 2011 12:11:03 +1000
Message-Id: <FQWAOL.XMDKL3LOB7Y5@abbra.com>
To: "David Dailey" <ddailey@zoominternet.net>
Cc: "'www-svg'" <www-svg@w3.org>
Hi David & all,

	One final observation after some experiments:

--Original Message--:
>Safari and FF actually draw five lines (the others draw only three), but the gradients are ignored.

	Robert's observations are correct. There is a Tiny 1.2 test that checks this and we fail it.

	Applying animation doesn't change things - so there is no bounding box defined even
if the line is at an angle. So, the sentence regarding horizontal/vertical lines is bogus.

	I've attached a simple animating version of your original test - only for fun and the
fact that it crashes Safari on Windows.

	But - the one thing that isn't clearly defined in the spec. for this case is what to do if the
paint server doesn't have a fallback colour.

	As you said Safari and FF draw five lines. They are assuming the default stroke
color as a fallback - i.e. black.

	The others that draw 3 lines treat lack of a fallback color to mean "don't paint
anything" and that is what the tiny test paint-grad-17-t.svg expects.

	So something to think about for the group - what to do about visible bounding
boxes in SVG2 (especially for games and hit-testing...)



(image/svg+xml attachment: gradientLinesAnim.svg)

Received on Thursday, 14 July 2011 02:11:40 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:25 UTC