W3C home > Mailing lists > Public > www-style@w3.org > February 2011

Re: [CSS2.1] list-style-image sizing rules don't match reality

From: Øyvind Stenhaug <oyvinds@opera.com>
Date: Wed, 23 Feb 2011 19:27:40 +0100
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "www-style list" <www-style@w3.org>
Message-ID: <op.vrdb7yu1bunlto@oyvinds-desktop>
On Wed, 23 Feb 2011 18:44:18 +0100, Tab Atkins Jr. <jackalmage@gmail.com>  
wrote:

> On Wed, Feb 23, 2011 at 9:40 AM, L. David Baron <dbaron@dbaron.org>  
> wrote:
>> On Monday 2011-02-14 10:56 -0800, Tab Atkins Jr. wrote:
>>> | 1. If the image has an intrinsic width or height,
>>> | then that intrinsic width/height becomes the image's
>>> | used width/height.
>>> |
>>> | 2. If the image has an intrinsic ratio, and either an
>>> | intrinsic width or an intrinsic height, calculate the
>>> | missing dimension from the provided dimension and the
>>> | ratio.
>>> |
>>> | 3. If the image has no intrinsic ratio and no intrinsic
>>> | width, the used width is 1em.
>>> |
>>> | 4. If the image has no intrinsic ratio and no intrinsic
>>> | height, the used height is 1em.
>>
>> I think steps (3) and (4) here aren't quite right, since if the
>> image has an intrinsic ratio, but neither an intrinsic width nor an
>> intrinsic height, then these rules don't define a result.
(...)
> The rules weren't meant to be exclusive - they're meant to be applied
> one-by-one.

That doesn't matter. In the case mentioned, none of the "if" predicates  
are true.

-- 
Øyvind Stenhaug
Core Norway, Opera Software ASA
Received on Wednesday, 23 February 2011 18:28:15 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:37 GMT