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

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

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Mon, 14 Feb 2011 18:08:39 +0000
To: Tab Atkins Jr. <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E2AB5E187@TK5EX14MBXC120.redmond.corp.microsoft.com>
[Tab Atkins:]
> Opera fills in the missing dimension as 1em, not 50px.  Chrome fills in
> the missing dimension as, I dunno, .5em?  Something like that, probably
> related to the width of the default bullet.  It's not exactly right, but
> it clearly has the same behavior as Opera.
> I can't seem to get Firefox or IE8 to render an SVG list-style-image.
> IE9, unfortunately, implements the spec here.  Luckily, this is a tiny
> edge-case that I suspect is extremely rare.  In all the normal cases
> (images with all intrinsic dimensions, images with no dimensions, images
> with just a ratio), everyone does things right.
> I suggest changing the spec here to match the webkit/opera behavior, so
> that list-style-image is consistent with every other use of images in CSS.
> My suggested change is to replace line #3 in the algorithm with "If the
> image has no intrinsic ratio, intrinsic width, or intrinsic height, then
> its intrinsic ratio is assumed to be 1:1."

I'm not sure I follow. You suggest adopting the Opera/WebKit behavior yet
your description implies the intrinsic ration they produce is not 1:1.

Also, the suggested replacement is a bit confusing: I understand "If the 
image has not intrinsic width or intrinsic height, then assume 1:1". Adding
intrinsic ratio in there, however, implies 'If the image has not intrinsic
ratio, assume 1:1' but what do you compute this 1:1 ratio for in this case ? 
Received on Monday, 14 February 2011 18:09:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:56 UTC