[SVGMobile12] SVGT12-207: use of xml:space for whitespace

This is regarding section 10.10.

- It seems like a bad idea to turn xml:space into effective a  
presentational attribute for SVG, instead of using a property along  
the lines of the CSS white-space property.

- The behavior specified for "default" is different than normal CSS  
whitespace collapsing with regards to line-breaks. Line-breaks are  
removed rather than collapsing to a space. I think it is surprising  
that:

<text>
one
two
</text>

Will result in the single word "onetwo" being displayed.

- It is unclear what to do in default mode with a text run that  
consists solely of whitespace. Does it collapse to nothing, because  
"Then, it will strip off all leading and trailing space characters"  
or does it collapse to a single space because "Then, all contiguous   
space characters will be consolidated"? It sounds like the former is  
more likely, but this too seems surprisingly unlike CSS whitespace  
collapsing.

- "preserve" mode does not in fact preserve tabs or for that matter  
newlines, unlike the "white-space: pre" property from CSS2 or "white- 
space-collapse: preserve" from CSS3 text effects.

- "Any features in the SVG language or the SVG DOM that are based on  
character position number are based on character position after  
applying the white space handling rules described here." It should be  
clarified that this does not refer to standard w3c DOM APIs, for  
example the interface to text nodes in DOM Core, or DOM Range.

Regards,
Maciej

Received on Thursday, 29 December 2005 05:40:47 UTC