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?

     #myDiv {
       background-image: image('#myLogo');

   <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?

Received on Wednesday, 21 November 2012 09:10:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:23 UTC