[css-flexbox] [css-sizing] Interaction of min-height and box-sizing: border-box

Hi there!

With a testcase like this:

<div style="height: 20px; min-height: min-content; box-sizing:
border-box; padding-top: 50px;">
  <div style="height: 50px; width: 50px;"></div>
</div>

What should the final size of the div be? Clearly, min-content here is
a 50px content-box or 80px border-box. But sizes in min-height get
adjusted by box-sizing. Do we insert the 50px content-box into
min-height, then adjust by box-sizing, and get an effective min-height
or 30px? Or not?

And (for the css-flexbox part of the question), does it make a
difference when this happens in the context of min-height: auto?

xref https://bugs.chromium.org/p/chromium/issues/detail?id=549863

Thanks,
-Christian

Received on Thursday, 23 June 2016 21:41:21 UTC