W3C home > Mailing lists > Public > www-style@w3.org > November 2012

Re: Any plans to add a method for suppressing white space between inline-block elements?

From: Kang-Hao (Kenny) Lu <kanghaol@oupeng.com>
Date: Sat, 24 Nov 2012 19:56:40 +0800
Message-ID: <50B0B5F8.20705@oupeng.com>
To: Fran├žois REMY <francois.remy.dev@outlook.com>
CC: Behrang Saeedzadeh <behrangsa@gmail.com>, W3C CSS Mailing List <www-style@w3.org>
(12/11/24 19:42), Fran├žois REMY wrote:
> This issue is already logged in CSS Text (level 3) as Issue #3: "There
> have been requests for the ability to "discard" white space; the current
> definition has no facility for this".
> 
> To make it more formal, let's propose something like this:
> 
>    white-space: [ <old-values>? ||  <whitespace-trim>? ]
>    white-space-trim: auto | trim | trim-line | preserve;
> 
>    white-space: trim;
>    white-space between at the beginning and at the end of text nodes is
> ignored (aka textnodes are trimmed before rendering); any whitespace
> sequence inside a text node is substituted into a single white space
> (0x20) or nothing.
> 
>    white-space: pre trim-line;
>    white-space between at the beginning and at the end of text nodes is
> ignored up to (and including) the first line break; any whitespace
> sequence inside a text node is preserved as is.

How is this compared to css4-text's 'white-space-collapse'[1]? See also
the relevant discussion[2].



I think we should start to maintain a list of most requested features
and the links to relevant threads, as well as the current status. I
think that's probably:

1. parent selector
2. //-comment
3. this?

[1] http://dev.w3.org/csswg/css4-text/#text-space-collapse
[2] http://lists.w3.org/Archives/Public/www-style/2012Mar/thread#msg644


Cheers,
Kenny
-- 
Web Specialist, Oupeng Browser, Beijing
Try Oupeng: http://www.oupeng.com/
Received on Saturday, 24 November 2012 11:57:11 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:03 GMT