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

Re: content: url() is bad

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 14 Apr 2004 20:55:47 -0500
Message-ID: <407DEBA3.1090108@mit.edu>
To: Ian Hickson <ian@hixie.ch>
Cc: www-style@w3.org

Ian Hickson wrote:
> How about actually putting it all on one property, like this:
> 
>    'content'
>    Values: [ <uri> [ ',' <uri> ]+ '/' ]? [ <content-list> [ ',' <content-list> ]+ | normal

So the semantics are "stuff before '/' replaces, stuff after '/' becomes 
kids"?  And if I just want an image inside my h1 I would do:

   h1 { content: url(whatever) }

and if I want it to replace I do:

   h1 { content: url(whatever) / contents }

and this incidentally _forces_ me to include a fallback of some sort for 
the replacement URL?

I kinda like it, actually.

-Boris
Received on Wednesday, 14 April 2004 23:09:02 GMT

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