W3C home > Mailing lists > Public > www-style@w3.org > May 2014

RE: [css-flexbox] min-height on flex items that have an intrinsic aspect ratio

From: Greg Whitworth <gwhit@microsoft.com>
Date: Mon, 19 May 2014 20:26:44 +0000
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <8f835114a9c24e2a92d9e9fa9aad4477@DM2PR03MB400.namprd03.prod.outlook.com>
> On 05/19/2014 07:21 AM, Tab Atkins Jr. wrote:
> > For example, in a shrink-wrapped table cell, if the height of the
> > image is specified as half its intrinsic height, its width
> > contribution to the table should likewise be half its intrinsic width.
> Sorry, I gave a bad example here. A more accurate example would be a
> 100x100 image with a specified width of 50px and a specified height of 'min-
> content': the resulting height should be 50px, similar to how a paragraph's
> height is (in a more sophisticated relationship) the result of applying its
> intrinsic constraints to a specified width.

Thanks for the feedback but I don't think that that solves the problem in this particular case because the width provided was not definite. What should happen to that same 100x100 image if the width is set to 100% with a height of 'min-content'? Your example is currently how IE behaves, if you take the fiddle example[1] from before and apply a definite width its aspect ratio is maintained due to the fact that 4.5 gives us that out and we uphold section 9.2.3B.


[1] http://jsfiddle.net/kdcwu/6/

[2] http://jsfiddle.net/kdcwu/10/

[3] http://jsfiddle.net/kdcwu/11/ (webkit version)

Received on Monday, 19 May 2014 20:27:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:27 UTC