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

There is something I don't get with linear gradients.
Take for example the top rectangle of test file

This is something like:

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

  <rect x="125" y="35" width="200" height="60"

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 ?

Received on Wednesday, 29 November 2000 09:23:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:41:17 UTC