Re: Request For Feedback: Traits

Bjoern Hoehrmann:
> http://www.w3.org/TR/2005/WD-SVGMobile12-20051207/svgudom.html
> 
>   If the width is specified as a percentage or unit value (only
>   possible for the 'svg' 'width'), a DOMException with error code
>   TYPE_MISMATCH_ERR is raised since the requested trait's computed
>   value cannot be converted to a float.
> 
> It does not discuss 'x' attributes with unit identifiers since those are
> not allowed in SVG Tiny 1.2, though I see no reason to expect this to be
> different in SVG 1.2 "Full".

I see.  Perhaps a getLengthTrait is required for these cases, or
conversion to a float could be defined as just converting to user units.
This wouldn't necessarily work for the root 'svg' element, since it
might depend on the context in which it is being rendered.  It's hard to
review some things without knowing how they will be handled in Full.

-- 
 Cameron McCormack			ICQ: 26955922
 cam (at) mcc.id.au			MSN: cam (at) mcc.id.au
 http://mcc.id.au/			JBR: heycam (at) jabber.org

Received on Wednesday, 4 January 2006 23:54:20 UTC