W3C home > Mailing lists > Public > www-style@w3.org > January 2016

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

From: Daniel Holbert <dholbert@mozilla.com>
Date: Wed, 27 Jan 2016 11:49:45 -0800
To: Christian Biesinger <cbiesinger@google.com>, www-style list <www-style@w3.org>
Cc: Manuel Rego Casasnovas <rego@igalia.com>
Message-ID: <6e336618-a39a-7042-156b-6161260d073e@mozilla.com>
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;"

JSFiddle version (with -webkit prefix added & no-prefix version as well):

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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:00 UTC