Re: transform property on <tspan> and <textPath>

On Fri, 2016-01-15 at 14:35 +1100, Cameron McCormack wrote:
> In the SVG 2 draft, we allow transform on <tspan> and <textPath>.  I
> realise now however that this is inconsistent with what CSS allows in
> non-SVG documents, and if we are defining SVG text layout in terms of
> CSS text layout (plus an additional layer of SVG glyph positioning),
> then we might want to reconsider.
> 
> Specifically, the transform property is defined to apply only to
> “transformable elements”:
> 
>   https://drafts.csswg.org/css-transforms/#transformable-element
> 
> Notably this doesn’t include inline elements, which is what we are
> considering <tspan> and <textPath> to be.
> 
> As far as I know nobody has implemented this.

Actually, rsvg seems to support transforms on tspan elements!

I would have thought that transform on tspan elements would be treated
as part of the post CSS layout step. However, I don't have a strong
opinion on keeping transforms on tspan and textPath elements.

Tav

Received on Friday, 15 January 2016 19:13:48 UTC