W3C home > Mailing lists > Public > www-style@w3.org > December 2004

Re: color:transparent

From: Justin Wood (Callek) <116057@bacon.qcc.mass.edu>
Date: Fri, 17 Dec 2004 15:16:04 -0500
Message-ID: <41C33E84.6010509@bacon.qcc.mass.edu>
To: Anne van Kesteren <fora@annevankesteren.nl>
CC: Bryce Fields <bryce.fields@gmail.com>, www-style@w3.org

Anne van Kesteren wrote:

> Bryce Fields wrote:
>> I'm sure that this is probably a bad idea on many levels, but I
>> thought I'd float it out there anyway.  You learn as much from
>> negative feedback as you do positive.  So here goes.
>> It has occured to me while researching the various image replacement
>> techniques, that it would be much simpler to implement IR if you could
>> just declare color:transparent.  Then you wouldn't need extraneous
>> markup, no "off-left" positioning, etc.  Text would not need to be
>> artificially manipulated to move it out of the way of the background
>> image.
> Although CSS3 allows this, as you find out in your follow-up e-mail, 
> it is much more appropriate to use the 'content' property, as in:
>   h1#contact{
>    content:url("contact"),contents;
>   }
> I believe Opera supports this in some way:
>   h1#contact{
>    content:url("contact");
>   }

Of course this assumes that common UA's support it, where if they do 
not, they would get |contents| only, which I assume is not a real bad 
(its non-breaking) solution, though Mozilla (iirc) and IE do not support 
the content property on regular elements and only on ::before,::after 
type selectors.

~Justin Wood (Callek)
Received on Friday, 17 December 2004 20:16:53 UTC

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