W3C home > Mailing lists > Public > www-style@w3.org > November 2000

Re: Way to Represent <img> Behaviour in CSS

From: Sean Palmer <wapdesign@wapdesign.org.uk>
Date: Wed, 22 Nov 2000 17:34:41 -0000
Message-ID: <002d01c054aa$a91568e0$7bed93c3@z5n9x1>
To: <www-style@w3.org>
> img {content:  url()} is almost certain to be valid CSS3, and
> attr is proposed.

Both are already valid CSS2, when applied to :before and :after:-
[[[
12.2 The 'content' property
'content'
Value:   [ <string> | <uri> | <counter> | attr(X) | open-quote |
close-quote | no-open-quote | no-close-quote ]+ | inherit
Initial:   empty string
Applies to:   :before and :after pseudo-elements
Inherited:   no
Percentages:   N/A
Media:   all
]]]

*But* it isn't legal to have attr(X) inside a <uri> yet, or apply it to any
other form of selector. That's what I'm asking, can we have uri(attr(X)) in
CSS3, and have it apply to anything?

Thanks for your quick reply,

Kindest Regards,
Sean B. Palmer
http://xhtml.waptechinfo.com/swr/
http://www.w3.org/WAI/ER/
http://www.w3.org/WAI/GL/
"Perhaps, but let's not get bogged down in semantics."
   - Homer J. Simpson, BABF07.
Received on Wednesday, 22 November 2000 12:36:31 GMT

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