W3C home > Mailing lists > Public > www-style@w3.org > February 2011

[css3-text] Tab U+0009 expansions to 8 spaces (was New WD of CSS Text Level 3

From: Koji Ishii <kojiishi@gluesoft.co.jp>
Date: Sat, 19 Feb 2011 06:39:02 -0500
To: Xaxio Brandish <xaxiobrandish@gmail.com>
CC: W3C style mailing list <www-style@w3.org>
Message-ID: <A592E245B36A8949BDB0A302B375FB4E0AB201D2CB@MAILR001.mail.lan>
> Section 4.2, numbered list 2, item 2 states
> Each tab (U+0009) is rendered as a horizontal shift
> that lines up the start edge of the next glyph with
> the next tab stop. Tab stops occur at points that are
> multiples of 8 times the width of a space (U+0020)
> rendered in the block's font from the block's starting
> content edge..
> For certain documents (mobile, possibly others), 8
> times with width of a space can be a LOT of screen
> real-estate.  Can there be a property to define
> "tab-stop" rather than a hard rule?

That's a good point too, but I think HTML/CSS is not trying to be a good plain text formatter. The expansion of tabs in <pre> tag should be minimal and mostly for backward compatibilities.

Authors who want more precise controls should expand to appropriate spaces by scripts, or use other controls to format lines than <pre> tag.

Does this sound reasonable?

Received on Saturday, 19 February 2011 11:38:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:56 UTC