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

Re: Way to Represent <img> Behaviour in CSS

From: Tantek Celik <tantek@cs.stanford.edu>
Date: Wed, 22 Nov 2000 10:30:03 -0800
To: Sean Palmer <wapdesign@wapdesign.org.uk>, www-style@w3.org
Message-ID: <1237204784-1021458257@psdbay.com>
From: "Sean Palmer" <wapdesign@wapdesign.org.uk>
Date: Wed, Nov 22, 2000, 9:34 AM

> *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?

Yes, this is allowed by the CSS3 UI draft [1], specifically, the extensions
to the content property [2]. Note in particular "Applies to: all elements".

Also note "Appendix A. Additions to the Base Style Sheet for HTML4" [3],
specifically the rule:

input[type=image]
{
 content: url(attr(src));
 border: none;
 user-select: none;
 user-focus: normal;
}


Tantek

[1]
 http://www.w3.org/TR/css3-userint

[2]
 http://www.w3.org/TR/css3-userint#content

[3]
 http://www.w3.org/TR/css3-userint#qA

-- (not so) Random fortune
"X-Mailer: Matthew Mail" (hey, it was in the header)
- when you absolutely, positively want to be sure it arrives. five times. ;)
Received on Wednesday, 22 November 2000 13:29:18 GMT

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