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

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