W3C home > Mailing lists > Public > www-style@w3.org > January 2006

Re: SVGT 1.2: A proposal for how to define SVG whitespace in terms of CSS whitespace

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 31 Jan 2006 00:55:18 +0100
To: Maciej Stachowiak <mjs@apple.com>
Cc: www-svg@w3.org, www-style@w3.org
Message-ID: <e48tt1lumkceou9j7bi2dl0rvd2400iq8p@hive.bjoern.hoehrmann.de>

* Maciej Stachowiak wrote:
>As requested by Jon Ferraiolo, here's a rough cut at reformulating  
>SVG whitespace handling in terms of style properties, to eventually  
>phase out use of xml:space and to be more compatible with a CDF  
>environment. I have Cc'd www-style because I believe that changes to  
>CSS may be required.

While xml:space suffers from people not understanding it and it beeing
underspecified in many environments, I don't think it's unfixable and
it's certainly more appropriate to use to convey certain semantics than
CSS. I don't see what's wrong with how SVG clarifies application level
behavior to ensure applications preserve the author's intention when
rendering text; the only problem here seems to be that many other specs
fail to provide such clarification.

It's true that SVG white space processing is a bit different from CSS
white space processing, but that's not really unexpected considering
that SVG 1.1 does not support text wrapping, for example. It might make
sense to add features to CSS to re-use the same white space processing
rules for other elements that we have for svg:text, etc. now, but this
would probably lead to interesting results once and if we try to figure
out how CSS and SVG interact for properties they don't share, like

  <svg:text style="white-space: pre" ...>

It seems it's unlikely this would suddenly turn svg:text into something
that supports multiple lines of text. I don't think we should change the
xml:space attribute such that it triggers some DOM transformations.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Monday, 30 January 2006 23:54:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:42 GMT