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

[css3-images] image() notation and <img>

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Wed, 21 Nov 2012 10:09:37 +0100
Message-ID: <50AC9A51.7080809@disruptive-innovations.com>
To: "www-style@w3.org" <www-style@w3.org>
Can I write the following?

   <style>
     #myDiv {
       background-image: image('#myLogo');
     }
   </style>

   <div id="myDiv">....</div>
   ....
   <img id="myLogo" src="myLogo.png"/>

expecting the div will acquire the logo as background-image
or should the target of image() here be an image format?
I don't think the CSS Image Values and Replaced Content Level 3
spec is clear enough about this in section 3.2 and it probably
needs a clarification as a note or warning?

</Daniel>
Received on Wednesday, 21 November 2012 09:10:04 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:02 GMT