Re: pservers-grad-18-b.svg

On Mon, 30 Apr 2007 14:46:05 +0200, Robert Longson <longsonr@gmail.com>  
wrote:

> Hi,
>
> I think there may be a problem with the pservers-grad-18-b.svg test in  
> the
> testsuite. It seems to assume that stop-color is an inherited attribute
> whereas in the svg 1.1 specification it is inherited: no.
>
> In the testcase we have:
>
>     <g id="g0" stop-color=
> "red" stop-opacity="0.5" color="yellow"
>>
>       <linearGradient id="MyGradient1">
>         <stop
>  offset="0" stop-color="green" stop-opacity=
> "1"/>
>         <stop offset="1"
> stop-color="inherit" stop-opacity="1"/>
>       </linearGradient>
> ...
>
>     </g>
>
> For stop offset="1" we have a stop-color of inherit, so we go to the  
> parent
> linearGradient element which has no stop-color attribute. Therefore we
> should take the initial stop-color value of the linearGradient element  
> which
> is black.
>
> However the test text says The result should show a the top-left  
> rectangle
> filled with a gradient from green to red since the stop-color is  
> inherited
> from the location of the gradient definition.
>
> MyGradient2 assumes a similar effect with stop-opacity.
>
> Best regards
>
> Robert.

This has been pointed out by other people as well, and you are correct.
The testcase you refer to is invalid as it stands now. It has been fixed  
in w3c cvs, but a public release of this has not yet been made.

Regards
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Received on Monday, 30 April 2007 13:00:20 UTC