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

Re: style attribute, only on font?

From: Adam van den Hoven <adam.vandenhoven@gmail.com>
Date: Fri, 30 Nov 2007 11:18:15 -0800
Cc: Martin Atkins <mart@degeneration.co.uk>
Message-Id: <35F522BD-5C59-435E-BAB5-8D2435D9237B@gmail.com>
To: "public-html@w3.org Tracking WG" <public-html@w3.org>

> On 30-Nov-07, at 10:14 AM, Martin Atkins wrote:
> Boris Zbarsky wrote:
>> Karl Dubost wrote:
>>> though if we do that we really should find a way to strongly
>>> discourage its use (and the use of its DOM attribute)
>>> for non-WYSIWYG authors.
>> Wait.  Discourage use of node.style.propName?  In favor of what,  
>> exactly?
> 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.

That's all well and good in theory but I believe that most effects  
libraries rely on node.style.propName to do their thing. Secondly  
Joseph Smarr gave a talk on high performance JS and one of the things  
that he says is to avoid dynamic CSS-class definitions (that is adding  
classes at run time). Droping support for node.style is going to hurt  
a lot of people.

Received on Friday, 30 November 2007 19:22:21 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:24 UTC