W3C home > Mailing lists > Public > public-html@w3.org > November 2007

Re: style attribute, only on font?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 30 Nov 2007 16:10:12 -0600
Message-ID: <47508A44.6090105@mit.edu>
To: Martin Atkins <mart@degeneration.co.uk>
CC: "public-html@w3.org Tracking WG" <public-html@w3.org>

Martin Atkins wrote:
> I don't to speak for whoever wrote that in the spec, but I believe that 
> some are suggesting that it's better to twiddle the value of 
> node.className and have the actual style rules in a stylesheet.

Yeah, that's not really practical if all you're doing is an animation (that is, 
setting style.left and style.top repeatedly).  There is no class to use, and you 
might be animating a large number of elements (see 
http://www.speich.net/computer/moztesting.php the "Slow (3D) DHTML performance 
compared to ie" link), or you might be positioning things in a way that can't be 
predetermined (e.g. following the user's mouse pointer).  Neither use case is 
really served by a predetermined stylesheet with one class per possible position.

-Boris
Received on Friday, 30 November 2007 22:10:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:10 GMT