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

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