W3C home > Mailing lists > Public > www-svg@w3.org > May 2006

Animating length values on gradients

From: Cameron McCormack <cam@mcc.id.au>
Date: Mon, 29 May 2006 21:27:37 +1000
To: www-svg@w3.org
Message-ID: <20060529112737.GB11014@port.mcc.id.au>


I was wondering what should happen if you try to interpolate between
percentage values and user unit values on one of a gradient element’s
coordinate attributes.  For example:

  <svg …>
    <linearGradient gradientUnits="userSpaceOnUse">
      <animate attributeName="x1" begin="0s" dur="5s" from="50%" to="150"/>

Since the percentages in these coordinate values are relative to the
viewport of referencing elements, my guess is that interpolation between
50% and 150 is not possible.

What if the ‘linearGradient’ element had its ‘gradientUnits’ attribute
set to ‘objectBoundingBox’?  Should interpolation be possible between
50% and 0.75, for example?

Earlier in the year I asked what should happen when an otherwise
interpolable attribute is animated between a numeric and a non-numeric
value, in this thread:


but I haven’t received a suitable answer yet.  I guess what should
happen here for animation between the 50% that cannot be converted to a
user unit value and the 150 user unit value would be the same for the
case I asked about before.



Cameron McCormack, http://mcc.id.au/
	xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au
Received on Monday, 29 May 2006 11:27:57 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:08 UTC