Animating length values on gradients

Hi.

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"/>
    </linearGradient>
  </svg>

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:

  http://www.w3.org/mid/20060214212004.GA30064@port.mcc.id.au

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.

Thanks,

Cameron

-- 
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