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

Whitespacing for <tspan>s

From: Tyler Denniston <denniston.t@gmail.com>
Date: Tue, 18 Oct 2016 11:48:32 -0400
Message-ID: <CAM8KWD5Q6uqA0QAPXNyMnAbOPwKjt15PFyibuCcd2Tqp+QBfoQ@mail.gmail.com>
To: www-svg@w3.org
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 15:49:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:55:06 UTC