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

Re: [css-sizing] [css-flexbox] does min-height: min-content include the scrollbar height?

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 04 Aug 2015 16:47:19 -0400
Message-ID: <55C124D7.7060001@inkedblade.net>
To: www-style@w3.org
On 08/04/2015 02:14 PM, Christian Biesinger wrote:
> Hi there!
>
> a question came up here today -- does the min-content size include
> scrollbars?

Yes. See
 
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cstyle%3E%0Abody%20%7B%20width%3A%200%3B%20%7D%0Adiv%20%7B%20float%3A%20left%3B%20overflow%3A%20scroll%3B%20border%3A%20solid%20orange%3B%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Cdiv%3Eabcd

> In particular:
>
> <div style="display: flex; flex-direction: column;">
>    <div style="min-height: min-content; width: 200px; overflow: auto;
> flex-basis: 0;">
>      <div style="height: 300px;  width: 500px; background-color: green;"></div>
>    </div>
> </div>
>
> Should there be a vertical scrollbar or not?

There should be a horizontal scrollbar and no vertical one, afaict.
Hopefully that makes sense...

~fantasai
Received on Tuesday, 4 August 2015 20:47:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 4 August 2015 20:47:58 UTC