Re: [css-sizing] min-content for replaced elements with an aspect ratio

On Wed, Jan 27, 2016 at 2:49 PM, Daniel Holbert <dholbert@mozilla.com> wrote:
> On 01/27/2016 09:48 AM, Christian Biesinger wrote:
>> Looking at Flexbox testcases I was wondering what the min-content size
>> should be for a case like:
>>
>> <img style="width: min-content; height: 100px;" size="image-60x60.gif">
> [...]
>> So that points to the width in the example being 60px, but that does
>> not seem to be the understanding of Gecko
>
> Are you sure about Gecko? For me, Gecko seems to resolve the min-content
> width to 60px in your example.
>
> Data URI:
> data:text/html,<img style="width: -moz-min-content; height: 100px;"
> src="http://placehold.it/60x60">
>
> JSFiddle version (with -webkit prefix added & no-prefix version as well):
>  https://jsfiddle.net/t9Laskra/

Oh. I hadn't actually tested it, this was based on an email
conversation I had with Rego... I assume Gecko would also resolve it
to 60px for a flexbox min-width: auto?

-Christian

Received on Wednesday, 27 January 2016 19:52:29 UTC