W3C home > Mailing lists > Public > www-svg@w3.org > March 2001

Re: Problem with SVGStopElements 'offset' attribute

From: Jon Ferraiolo <jferraio@Adobe.COM>
Date: Mon, 19 Mar 2001 15:05:43 -0800
Message-Id: <4.2.2.20010319150231.0a5d5bc0@mailsj.corp.adobe.com>
To: bbrodie@savagesoftware.com (Blaine Brodie)
Cc: www-svg@w3.org
Blaine,
Thanks for the report.

The SVG working group noticed this discrepancy. It was an error for the 
'offset' attribute to be a <length> since cm, in, em, etc. don't make sense 
for this attribute. We decided to redefine the 'offset' attribute to be a 
<number> or a percentage, and in the DOM is stays as an SVGAnimatedNumber. 
(Therefore, you won't know from the SVG DOM whether the original value was 
".5" or "50%" since both values will map to ".5" in the SVG DOM.)

The next public draft will contain this fix.

Jon Ferraiolo
SVG Editor
jferraio@adobe.com

At 02:40 PM 3/19/01 -0800, Blaine Brodie wrote:
>The stop element has an attribute named 'offset' which, according to the
>DTD,  has type SVGLength.  However, the SVG DOM's SVGStopElement's
>attribute has an SVGAnimatedNumber as its type, rather than
>SVGAnimatedLength.
>---
>Blaine
Received on Monday, 19 March 2001 18:06:33 GMT

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