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

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/

~Daniel

Received on Wednesday, 27 January 2016 19:50:21 UTC