Re: PSA: Implementing min-width/height: auto (for flexbox)

78 views
Skip to first unread message

Christian Biesinger

unread,
Apr 14, 2015, 1:56:58 PM4/14/15
to blink-dev, chromium-dev
+chromium-dev

FYI, this has now landed. If this causes a flex item not to shrink as
expected on a website or in Chrome UI, it can be fixed by adding
"min-width: 0; min-height: 0;" to the flex item in question.

Firefox has shipped this behavior for a while.

-christian

On Tue, Mar 31, 2015 at 8:39 PM, Christian Biesinger
<cbies...@chromium.org> wrote:
> Hi there,
>
> just as a heads up, I have a patch to implement
> min-width:auto/min-height:auto for flexbox as specified in:
> http://dev.w3.org/csswg/css-flexbox/#min-size-auto
>
> Basically, flex items will not flex below their intrinsic size by default,
> subject to some conditions.
>
> As this just updates our code for a spec change, I don't believe this needs
> an intent to ship, though it does have some potential to break content.
>
> The code review for this is (I know, I need to update it, the try servers
> are red):
> https://codereview.chromium.org/988523003/
>
> -christian
Reply all
Reply to author
Forward
0 new messages