Re: stroke=gradient for lines or horizontal paths

Hi David & all,

	One final observation after some experiments:

--Original Message--:
><snip/>
>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...)

Alex
 

 

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