Re: suggestion: fixed-aspect-ratio CSS rule for block elements

Le 06/05/10 19:23, Tab Atkins Jr. a écrit :

> Is there any reason for this?  I'd think it would just use the normal
> rules for resolving width/height.  Whichever one normally takes
> precedence does so, and then aspect-ratio is consulted to constrain
> the other one.  If we wanted to change which dimension was used as the
> "primary" input for the sizing algo, we should do that separately
> rather than shoving it into a nominally unrelated property.

Televisions preserving the aspect-ratio of the image on a screen of
another aspect-ratio (4/3 on a 16/9 tv for instance) often offer
the two modes (black strips around height preservation or clipping of
width preservation.

</Daniel>

Received on Thursday, 6 May 2010 21:50:07 UTC