Re: Problem with SVGStopElements 'offset' attribute

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 UTC