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: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 28 Mar 2012 15:43:36 -0700
Message-ID: <CAAWBYDAn-Um4iiikvedX44_QhXQ7aRUza2vye5M01iXhLDZUmA@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style list <www-style@w3.org>
On Wed, Mar 28, 2012 at 2:34 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> We keep running into situations where markup contains "non-semantic"
> whitespace.  This includes whitespace between flex item, whitespace between
> internal table parts, in some cases whitespace between inline-block kids of
> a block.  I expect the list to grow.
>
> Would it make sense to have a property (non-inherited) to allow suppressing
> such whitespace-only child boxes when the author wants them suppressed?

So this would control whether or not we throw away direct text-node
children of an element.  I'm okay with that.  Presumably we'd still
let layout modes define their default handling of whitespace, with the
property having a default value of "auto" that respects that.

~TJ
Received on Wednesday, 28 March 2012 22:44:24 GMT

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