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

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