[csswg-drafts] [css-sizing] min-content size of percentage-sized replaced elements

fantasai has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-sizing] min-content size of percentage-sized replaced elements ==
We recently [resolved](https://github.com/w3c/csswg-drafts/issues/951) that the min-content size of replaced elements with percentage size/max-size and an intrinsic aspect ratio is calculated from 300x150 and the aspect ratio. The upside is that we have a definition that isn't zero. The downside is that 300x150 is rarely a useful size, and isn't customizable.

So I was just thinking, what if we try using the min-width/min-height instead (where possible, i.e. not when calculating the min-width/min-height value itself)? If either of them is not auto, use that plus the aspect ratio to calculate the min-content size, otherwise fall back to 300x150.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1722 using your GitHub account

Received on Tuesday, 15 August 2017 20:58:27 UTC