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

Way to Represent <img> Behaviour in CSS

From: Sean Palmer <wapdesign@wapdesign.org.uk>
Date: Wed, 22 Nov 2000 17:03:23 -0000
Message-ID: <00aa01c054a6$2f3ff980$22d993c3@z5n9x1>
To: <www-style@w3.org>
In the CSS2 spec. there is a style sheet to represent the default behaviour
(i.e. style) that most browsers apply to HTML. However, there is the caveat
that certain things like the display of images in <img> cannot be expressed.
While this is not quite legal, has anyone considered the following:-

     @media screen { img { content: url(attr(src)); } }

It's not legal becuase it CSS2 we can only concatenate "content" property
values, and not nest them, but it opens up an interesting notion.
If the WG would consider allowing nesting values in CSS3, it would therefore
be possible to use CSS to describe the behaviour of the <img> element in
HTML; although that would mean that the "content" property would become
rather complex in its definition.
Just a thought (IMHO etc.).....

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:04:30 GMT

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