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
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
"Perhaps, but let's not get bogged down in semantics."
   - Homer J. Simpson, BABF07.
Received on Wednesday, 22 November 2000 12:36:31 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:55 UTC