On Tue, Nov 12, 2013 at 10:54 AM, Adam Barth <w...@adambarth.com> wrote:
> Why doesn't it support variable-sized images?  In example above, one
> of the cases is 30x30 and the other is 60x60.  Maybe I've
> misunderstood what you mean by variable-sized images?

It doesn't support a *compact syntax for providing multiple densities
for variable-sized images*.

This topic has been brought up over and over again when discussing why
srcset isn't sufficient.  Please see <http://www.xanthir.com/b4Su0> -
just look at the examples if you're in a hurry.  The point is obvious.

>> - Requires you to know the intrinsic aspect ratio of the images in advance.
>
> That seems like something we should improve about CSS more generally.

Yes, this is fixable through the 'content' property and proper
indication that you're creating a "replaced element", rather than just
filling the element with an anonymous piece of content.  Then "height:
auto;" will work as intended.

~TJ

Reply via email to