Re: <tspan> and getBBox()

Hi Thomas,

On 30/09/14 06:16, Smailus, Thomas O wrote:
> In SVG 1.1  <text /> implements SVGTextPositioningElement and
> SVGTransformable (which in turn implments SVGLocatable and thus gives
> <text/> getBBox() )
>
> <tspan /> doesn’t implement SVGTransformable
>
> I see in the SVG 2 draft spec indicates “SVG 2 will allow transforms on
> ‘tspan’” (http://www.w3.org/TR/SVG2/text.html#TSpanElement ).
>
> Does this mean that <tspan /> will implement SVGTransformable and
> finally get the much needed getBBox() function/method?

Yes, effectively.

> SVGTSpanElement  interface should inherit from SVGTransformable in that
> case, correct?

The SVGTransformable interface was dropped in SVG 2 as part of moving to 
Web IDL (which doesn't allow multiple inheritance).  Its functionality 
is now all on SVGGraphicsElement, which SVGTSpanElement inherits from 
through SVGTextContentElement.

Received on Monday, 29 September 2014 21:42:49 UTC