auto on element with non-visible overflow

Issue #10723984 • Assigned to Greg W.

Details

Created
Jan 30, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
20.10240
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

According to the flexbox spec at https://www.w3.org/TR/css-flexbox-1/#min-size-auto, the new initial value for min-height and min-width is 'auto’. But that is only supposed to make a difference when overflow is not 'visible’, otherwise, ‘auto’ should be the same as '0’.

But take a look at this test case:

http://codepen.io/bkemper/pen/VPMdqB

The #two element is using the “automatic minimum size” instead, that is, "the smaller of its content size and its specified size", which is the content size. It seems to be missing the “It otherwise computes to 0” stipulation of the spec for non-visible overflow. If I add a rule '#two { min-height:0; }’, I get the expected behavior (#two gets sized to only fill the remaining area of its flex-box container). I shouldn’t need this rule, because min-height should compute to zero anyway.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Greg W.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in