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

Re: [CSS3 proposal] 'replace-by-image' property

From: Rijk van Geijtenbeek <rijk@opera.com>
Date: Wed, 01 Aug 2007 13:56:10 +0200
To: "WWW Style" <www-style@w3.org>
Message-ID: <op.twdp3wnticz8n2@rijk-01.lan>

> Nikodem wrote:
>>
>> I think that [X]HTML image tag <img src="..." /> is OK for
>> content-related images (photos for articles etc.), but not for
>> navigation (<ul><li><a href="mailto:a@b.c"><img src="mail.png"
>> alt="Mail" /></a></li></ul>), where it is going to be a little
>> presentational. It could be made so:
>>
>>     <style type="text/css">
>>     ul li#mail{replace-by-image:url("mail.png");}
>>     @media print{ul li#mail{replace-by-image:none;}}
>>     </style>
>>
>>     <ul><li id="mail"><a href="mailto:a@b.c">Mail</a></li></ul>

Isn't this already covered by the proposed CSS3 Generated and Replaced Content Module WD?

http://www.w3.org/TR/2003/WD-css3-content-20030514/#content

<style type="text/css">
ul li#mail {content: url("mail.png");}
@media print {
  ul li#mail { content: normal;}
}
</style>




-- 

                                                   Rijk van Geijtenbeek
                                                     Opera Software ASA
                                  Tweak: http://my.opera.com/Rijk/blog/
Received on Wednesday, 1 August 2007 11:56:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:51 GMT