W3C home > Mailing lists > Public > svg-testsuite-comments@w3.org > November 2000

gradients and viewport

From: Stephane Conversy <conversy@emn.fr>
Date: Wed, 29 Nov 2000 15:22:52 +0100
Message-ID: <3A25113C.F2FE471C@emn.fr>
To: www-svg@w3.org, svg-testsuite-comments@w3.org
Hello.

There is something I don't get with linear gradients.
Take for example the top rectangle of test file
gradientPattern-linearGradient-BE-02.svg.

This is something like:

  <linearGradient id="Grad1">
    <stop style="stop-color:red" offset="0" />
    <stop style="stop-color:blue" offset="1" />
  </linearGradient>

  <rect x="125" y="35" width="200" height="60"
style="fill:url(#Grad1)"/>

it is said in the test file that "Gradient is from the viewport left
edge (red)
to viewport right edge (blue)".

Is it right ? Since the gradientUnits attribute is not set in
the gradient, the (default) coords (0%,0%,100%,0%) should
be used with respect to the object bounding box, not the viewport ?

Am I missing something ?

    stef
Received on Wednesday, 29 November 2000 09:23:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:24:43 GMT