W3C home > Mailing lists > Public > www-style@w3.org > December 2015

Re: [css-sizing][css-flexbox] intrinsic min/max-width/height values and percentage children

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 1 Dec 2015 16:13:35 -0800
Message-ID: <CAAWBYDAVtEXOomRLrF0QTDOpQZO4vJcY3M0Z5Uc0q-NBJ_F54A@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style list <www-style@w3.org>
On Tue, Dec 1, 2015 at 3:23 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 12/1/15 4:38 PM, Tab Atkins Jr. wrote:
>> Assuming you either (a) don't use percentages in the children, or (b)
>> don't violate the min-width/height constraint, no additional work is
>> done.  It's only when you have a % child *and* violate
>> min-width/height that you have do to a second layout pass, because the
>> % children will change size.
>
> In general, pretty much anything that requires a second layout pass, even in
> rare circumstances, is a bad idea, because it means that nesting leads to
> exponential time growth, no?

Yes, but apparently this is okay with implementors, since this is what
they're asking for.

~TJ
Received on Wednesday, 2 December 2015 00:14:27 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:55 UTC