Re: Way to Represent <img> Behaviour in CSS

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 UTC