Re: pservers-grad-18-b.svg

On Monday, April 30, 2007, 2:46:05 PM, Robert wrote:

RL> Hi,

RL> I think there may be a problem with the pservers-grad-18-b.svg
RL> test in the testsuite. It seems to assume that stop-color is an
RL> inherited attribute whereas in the svg 1.1 specification it is  inherited: no.

Hi Robert,

Thanks for your bug report. I think you are correct, but the SVG WG
will discuss it shortly and decide how to improve this test, and then
we will get back to you.

RL> In the testcase we have:
RL>  <g id="g0" stop-color="red" stop-opacity="0.5" color="yellow">
RL>  <linearGradient id="MyGradient1">
RL>  <stopoffset="0" stop-color="green" stop-opacity="1"/>
RL>  <stop offset="1" stop-color="inherit" stop-opacity="1"/>
RL>  </linearGradient>
RL> ...
RL>  </g>

RL> For stop offset="1" we have a stop-color of inherit, so we go to
RL> the parent linearGradient element which has no stop-color
RL> attribute. Therefore we should take the initial stop-color value
RL> of the linearGradient element which is black. 

RL> However the test text says The result should show a the top-left
RL> rectangle filled with a gradient from green to red since the
RL> stop-color is inherited from the location of the gradient definition.

RL> MyGradient2 assumes a similar effect with stop-opacity. 

RL> Best regards

RL> Robert.


 Chris Lilley          
 Interaction Domain Leader
 Co-Chair, W3C SVG Working Group
 W3C Graphics Activity Lead
 Co-Chair, W3C Hypertext CG

Received on Monday, 30 April 2007 13:05:15 UTC