Re: Whitespacing for <tspan>s

Tylerr,

The test is correct. Those are regular single spaces within the string, not
white spaces, like the start and end tabs for example. The space between
"are" and "not" could be before the tspan tag rather than after, with the
same result. If there were two spaces, one before and one after the tspan,
the second one would be considered white space and not be rendered.

Domenico

On Tue, Oct 18, 2016 at 5:48 PM, Tyler Denniston <denniston.t@gmail.com>
wrote:

> Hello,
>
> I am confused about the required handling of whitespace for <tspan>
> elements that are in the middle of a <text> element. In the test
> 'text-tspan-01-b', the first test is:
>
>       <text x="74" y="63.75" fill="blue">
>         You are<tspan font-weight="bold" fill="green"> not </tspan>a
> banana.
>       </text>
>
> Because no "xml:space" attribute is declared on the tspan or any
> parent, shouldn't the leading and trailing spaces be removed around
> the word "not", as is specified in the "default" value for "xml:space"
> (https://www.w3.org/TR/SVG11/text.html#WhiteSpace)?
>
> Also, for future reference, is this mailing list the correct place to
> direct questions such as these?
>
> Thanks,
>
> Tylerr
>
>
>

Received on Tuesday, 18 October 2016 19:20:30 UTC