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

Re: [css4-text] A non-inherited property to control behavior of whitespace-only child boxes

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 29 Mar 2012 08:48:34 -0700
Message-ID: <4F748452.80301@mit.edu>
To: "Kang-Hao (Kenny) Lu" <kennyluck@csail.mit.edu>
CC: "Marat Tanalin | tanalin.com" <mtanalin@yandex.ru>, WWW Style <www-style@w3.org>
On 3/29/12 4:27 AM, Kang-Hao (Kenny) Lu wrote:
> (12/03/29 8:42), Boris Zbarsky wrote:
>> On 3/28/12 5:23 PM, Marat Tanalin | tanalin.com wrote:
>>> Currently, it's somewhat tricky to use `display: inline-block` to
>>> create gapless layout
>
> For your information, this was brought up[1] as a use case for
> 'text-space-collapse: discard;'.

text-space-collapse is inherited, which is not what's really needed here.

> Do your have other use cases besides this one?

Not yet, though of course the underlying mechanism would be the same for 
this and tables/flexbox/grid.

> Specifically, do we need
> a value that keeps whitespaces from getting dropped, esp. in
> 'table'/'inline-table'/'flexbox'/'inline-flexblox'?

I don't think we actually do.

> Other thing, if we end up not dropping inter-element whitespaces
> unconditionally for flexboxes, 'text-space-collapse: discard;' as it is
> currently defined in CSS4 Text[2] doesn't work because it turns the
> whitespace into a zero width non-joiner (U+200C) (why, by the way?) and
> it would still generate an anoymous flexbox item, I presume.

Yep.

> And again, 'text-space-collpase' is inheritable and it's not clear to me
> if that is better or we need something else.

Indeed.

-Boris
Received on Thursday, 29 March 2012 15:49:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:53 GMT