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

[css3-flexbox] handling whitespace between items in a flexbox

From: Daniel Holbert <dholbert@mozilla.com>
Date: Thu, 22 Mar 2012 00:00:03 -0700
Message-ID: <4F6ACDF3.1030706@mozilla.com>
To: www-style list <www-style@w3.org>
Hi www-style,

Currently, I don't believe the spec makes any mention of how to handle
whitespace between flexbox items. (whether it's ignored or counts as
"non-replaced inline children" and triggers an anonymous flexbox item)

Consider e.g. the following testcase:
 <div style="display: flexbox">
   <img>
   <img>
 </div>

My guess is that we'd that to only generate 2 flexbox items, right?
(rather than 5 items, which we'd get if we counted the whitespace at the
beginning / middle / end as anonymous-flexbox-item-worthy)

It'd probably be good to clarify this, as rendering engines _do_ generate
boxes for runs of whitespace in many cases (which are then sometimes
collapsed and sometimes not).

Thanks,
~Daniel
Received on Thursday, 22 March 2012 07:00:32 GMT

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