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: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 24 Sep 2010 22:25:33 -0700
Message-ID: <AANLkTimXMnAC_mLXy6oh_X7zYrAnVPCdmHJFm+pmPme4@mail.gmail.com>
To: Aryeh Gregor <Simetrical+w3c@gmail.com>
Cc: Andrew Fedoniouk <news@terrainformatica.com>, www-style@w3.org
On Wed, Sep 22, 2010 at 2:03 PM, Aryeh Gregor <Simetrical+w3c@gmail.com> wrote:
> 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'"?

My phrasing should mean the same thing, though yours is somewhat clearer.

Received on Saturday, 25 September 2010 05:26:25 UTC

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