Re: [cssom-views] getBoxQuads and SVG text

On Wed, Sep 18, 2013 at 3:41 PM, Robert O'Callahan <> wrote:
> On Thu, Sep 19, 2013 at 5:05 AM, Tab Atkins Jr. <>
> wrote:
>> On Wed, Sep 18, 2013 at 4:00 AM, Robert O'Callahan <>
>> wrote:
>> > It's not clear to me how getBoxQuads should behave when called on an SVG
>> > text element, or text node child of an SVG text element, that is being
>> > rendered along a path. Should we return one DOMQuad per glyph, or one
>> > DOMQuad that contains all the glyphs, or something else?
>> That is an excellent question.  Off the top of my head, yes, one quad per
>> glyph.
> Not the easiest thing to implement, but OK. That makes sense for text nodes,
> but is it the same answer for <text> and <tspan> elements?

If they get split up on a path, they get split up in the quad list.

> A harder question: what about when we return quads from some arbitrary node
> relative to a text node, <text> or <tspan> element that is being rendered
> along a path? How is that supposed to work?

This seems similar to getting coordinates relative to something broken
across a column or whatever.  Presumably you'd return coords relative
to the first quad.


Received on Wednesday, 18 September 2013 23:59:16 UTC