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

[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