W3C home > Mailing lists > Public > public-svg-wg@w3.org > July to September 2014

Re: <tspan> and getBBox()

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 30 Sep 2014 07:42:15 +1000
Message-ID: <5429D237.8090802@mcc.id.au>
To: "Smailus, Thomas O" <Thomas.O.Smailus@boeing.com>, SVG WG <public-svg-wg@w3.org>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:20:20 UTC