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

SVGLength.convertToSpecifiedUnits()

From: Steve Schafer <steve@fenestra.com>
Date: Thu, 22 May 2003 14:15:17 -0400
To: www-svg@w3.org
Message-ID: <354qcvclttdkjd4k9cpeptf2ckcvt339nc@4ax.com>

In SVG 1.1, the description for SVGLength.convertToSpecifiedUnits() says
"No Exceptions," but there are situations where the results would be
undefined:

1) If the unitType is SVG_LENGTHTYPE_UNKNOWN, then the results of the
conversion are obviously undefined. (Setting the value to zero would be
a reasonable default behavior in this case.)

2) If either the existing unitType or to-be-assigned unitType are
SVG_LENGTHTYPE_PERCENTAGE, SVG_LENGTHTYPE_EXS or SVG_LENGTHTYPE_EMS,
then the results of the conversion are undefined if the two unitTypes
are different and the SVGLength exists outside of a DOM tree. (I can't
think of a reasonable default behavior in this case.)

-Steve Schafer
Fenestra Technologies Corp
http://www.fenestra.com/
Received on Thursday, 22 May 2003 14:15:32 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:25 GMT