W3C home > Mailing lists > Public > public-svg-wg@w3.org > July to September 2009

Re: SVGLength behaviour tightening

From: Doug Schepers <schepers@w3.org>
Date: Sun, 30 Aug 2009 02:50:36 -0400
Message-ID: <4A9A213C.1060406@w3.org>
To: public-svg-wg@w3.org
Make it so.

Regards-
-Doug

Cameron McCormack wrote (on 8/30/09 1:50 AM):
> I’d like to define the behaviour of SVGLength (and similarly for
> SVGAngle) when the attribute contains an invalid string such that:
>
>    * unitType is SVG_LENGTHTYPE_UNKNOWN, value is NaN,
>      valueInSpecifiedUnits is NaN and valueAsString is "";
>
>    * when assigning to value or validInSpecifiedUnits that the length is
>      set to that value in user units;
>
>    * assigning to valueAsString or calling newValueSpecifiedUnits works
>      normally; and
>
>    * calling convertToSpecifiedUnits throws an exception.
>
> Also I’d like to make it clear that assigning to value will keep
> unitType as whatever it was before, and not just change it to
> SVG_LENGTHTYPE_NUMBER.
>
> Let me know if you think this is reasonable.
>
Received on Sunday, 30 August 2009 06:50:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 30 August 2009 06:50:46 GMT