W3C home > Mailing lists > Public > www-style@w3.org > September 2007

[css21] images without intrinsic properties

From: Anne van Kesteren <annevk@opera.com>
Date: Sat, 08 Sep 2007 12:56:32 +0200
To: www-style@w3.org
Message-ID: <op.tyb0oi0j64w2qv@annevk-t60.oslo.opera.com>

The CSS 2.1 specification has detailed rules for replaced elements dealing  
with images that lack one or more of the following: intrinsic height,  
intrinsic width and intrinsic aspect ratio.

The definition for 'background-image' doesn't seem to deal in with the  
case where you have an intrinsic height and aspect ratio but do not have  
an intrinsic width.

The definitions for 'content', 'list-style-image' and 'cursor' don't deal  
with such images at all. (Although maybe for 'content' you'd use the rules  
for replaced elements and if ::marker is ever implemented  
'list-style-image:foo' would be some type of short hand for ::marker  
{ content:foo }.)

I think it would be nice if these cases were clarified so some proper  
testcases on "SVG as image" support can be made hopefully ensuring that  
new implementations will be reasonably correct from the start and content  
won't start relying on suboptimal behavior.

Anne van Kesteren
Received on Saturday, 8 September 2007 10:56:49 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:30 UTC