W3C home > Mailing lists > Public > www-svg@w3.org > January 2016

What is SVGGraphicsElement.getBBox() expected to return for textPaths and tspans?

From: Sebastian Zartner <sebastianzartner@gmail.com>
Date: Wed, 13 Jan 2016 14:31:30 +0100
Message-ID: <CAERejNYT08rbuWAdS7029y3WXOEfd74Uz3oKtdoTDXO0vS-jFQ@mail.gmail.com>
To: www-svg@w3.org
Hi all!

I'm Sebastian and it's the first time I'm writing here.

Short summary of why I'm writing:
I first discussed the behavior of SVGGraphicsElement.getBBox() in a Mozilla
bug[1]. This lead me to a Chromium bug[2], which itself refers to some SVG
telcon minutes[3]. The resolution in those minutes is not clear to me,
though.

So, I have two questions:
Is getBBox() expected to return the bounding box of the surrounding <text>
element when called on  a <textPath> or <tspan> element? (See the test
cases attached to the Mozilla and Chromium bug.)
Shouldn't getBBox() be deprecated in favor of
Element.getBoundingClientRect()[4]?

Best regards,

Sebastian

[1] https://bugzil.la/937268
[2] https://code.google.com/p/chromium/issues/detail?id=349835
[3] https://www.w3.org/2014/04/07-svg-minutes.html#item05
[4] https://drafts.csswg.org/cssom-view/#dom-element-getboundingclientrect
Received on Wednesday, 13 January 2016 13:32:17 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:43 UTC