W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2007

[whatwg] Use cases for style= on arbitrary elements

From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Date: Sun, 21 Jan 2007 23:18:04 +0000
Message-ID: <1169421484.10806.167.camel@galahad>
Matthew Paul Thomas wrote:

> We have a set of things, stored in a database and listed on a Web page, 
> where we want to indicate their age by making the older ones "fade 
> away". This would be done by computing a shade of grey, and putting it 
> in a style= attribute for the <li> element.

This sounds more like a use-case for nested <em> to me.

> A more common example is tag clouds, where a computed size is given in 
> the style= attribute of an <a> element. In that case, there is the same 
> objection to using classes. And there is a more practical objection to 
> using <font>: in a cloud that showed hundreds of tags, an extra element 
> for each of them would add substantially to the size of the page.

This not only sounds like a use-case for nested <em>, but it is
apparently an /actual/ use of nested <em> (by Technorati):


(And compare the more explicit approach advocated there.)

Benjamin Hawkes-Lewis
Received on Sunday, 21 January 2007 15:18:04 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:31 UTC