W3C home > Mailing lists > Public > www-style@w3.org > September 2010

Re: [css3-box] providing an aspect-ratio for a box (Re: suggestion: fixed-aspect-ratio CSS rule for block elements)

From: Aryeh Gregor <Simetrical+w3c@gmail.com>
Date: Wed, 22 Sep 2010 17:03:39 -0400
Message-ID: <AANLkTi=6GG4u3nx0iknKTiuKijhOyNvT4Mj4U52_aK2Q@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Andrew Fedoniouk <news@terrainformatica.com>, www-style@w3.org
On Tue, Sep 21, 2010 at 2:11 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> Per the previous discussion on this topic, it would work like this:
> 1. If both width and height are not 'auto', then aspect-ratio has no effect.
> 2. If one of width and height are 'auto' and the other is not 'auto',
> then the 'auto' one is computed by using the other dimension and the
> aspect-ratio.
> 3. If both width and height are 'auto', then whichever dimension is
> calculated first is calculated normally (width, in normal block flow),
> then aspect-ratio is used to calculate the other dimension.

I assume that 1 is supposed to read "If neither width nor height is 'auto'"?
Received on Wednesday, 22 September 2010 21:12:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:49:47 UTC