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

Re: [css3-writing-modes] height: fill-available's behavior is suboptimal

From: Elliott Sprehn <esprehn@gmail.com>
Date: Fri, 13 Jul 2012 14:59:48 -0700
Message-ID: <CAPJYB1i5P2jRFNBNOueH6Tb3rPG5aT3MFkeBc0m199ncZy21RQ@mail.gmail.com>
To: Ojan Vafai <ojan@chromium.org>
Cc: "L. David Baron" <dbaron@dbaron.org>, "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
On Fri, Jul 13, 2012 at 1:56 PM, Ojan Vafai <ojan@chromium.org> wrote:

> ...
> <div style="width: 1000px">
>     <div id=outer style="width: min-content">
>         <div id=inner style="width: 50%"><div style="display:inline-block;
> width: 100px"></div></div>
>     </div>
> </div>
> Should the inner div be width 50px or 500px? It's not clear to me which is
> better.
If it was 500px then it would overflow the #outer which seems a little
weird since the intent of min-content is to size the block such that it has
no overflow.

As another example:

<div style="width: 1000px;">
    <div id=outer style="width: min-content;">
        <div id=inner style="width: fill-available;"><div
style="display:inline-block; width: 100px"></div></div>

In this case the author probably intended the fill-available to take up all
the space inside of the min-content container without overflowing.

- E
Received on Friday, 13 July 2012 22:00:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:18 UTC