W3C home > Mailing lists > Public > www-style@w3.org > March 2012

Re: [css3-images] Comments on object sizing terminology

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 21 Mar 2012 14:13:00 -0700
Message-ID: <CAAWBYDCTApcyHgCQNaAHWW_KbO_0K40WssgkFrZxrAu-rM0ynQ@mail.gmail.com>
To: Øyvind Stenhaug <oyvinds@opera.com>
Cc: www-style@w3.org
On Wed, Mar 21, 2012 at 3:56 AM, Øyvind Stenhaug <oyvinds@opera.com> wrote:
> On Wed, 21 Mar 2012 10:09:51 +0100, fantasai <fantasai.lists@inkedblade.net>
> wrote:
>
>> | If an object (such as an icon) has multiple sizes, then the largest size
>> | (by area) is taken as its intrinsic size. If it has multiple aspect
>> ratios
>> | at that size, or has multiple aspect ratios and no size, then the aspect
>> | ratio closest to the aspect ratio of the default object size is used, as
>> | determined by minimizing the area in a "contain" fit of the default
>> object
>> | size; between equivalently-mismatched images, the wider image is chosen.
>
>
> Interpreting the "as determined by [...]" clause takes some effort, I think
> it would be better if the procedure is spelled out in more detail.

Does this help?

# If an object (such as an icon) has multiple sizes, then the largest
size (by area) is taken as its intrinsic size. If it has multiple
aspect ratios at that size, or has multiple aspect ratios and no size,
then the aspect ratio closest to the aspect ratio of the <i>default
object size</i>is used.  Determine this by seeing which aspect ratio
produces the largest area when fitting it within the <i>default object
size</i> using a <i>contain</i> fit; if multiple sizes tie for the
largest area, the wider size is chosen as its intrinsic size.

> And
> shouldn't it be *maximizing* the area, or have I still not decrypted it
> correctly?

Yes, it should be.  Fixed in the above text.

~TJ
Received on Wednesday, 21 March 2012 21:13:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:53 GMT