Re: CSS2.1 'content', 404 Not Found, and audio files

* Anne van Kesteren wrote:
>>> Also, it seems we haven't defined fallbacks very well here. If the
>>> resource at the URL cannot be loaded as a replaced element, the
>>> content value should fail and fall back, not load half-baked
>>> strings.
>>> 
>>> content: "Welcome to " url(welcome.png) "!";
>> 
>> That's a rather bad example, welcome.png is content not style here.
>
>Why not? If the markup was something like:
>
>   <h1>Welcome to Thailand</h1>
>
>... and you want to replace 'Thailand' with a decorative image. Why 
>wouldn't that be style?

You can't replace anything with the content property in CSS 2.1,
it applies to :before and :after only.

Received on Thursday, 5 August 2004 02:05:09 UTC