W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2000

RE: Expected behavior of CSSRule's setCssText.

From: Chris Wilson <cwilso@microsoft.com>
Date: Thu, 14 Sep 2000 16:59:21 -0700
Message-ID: <72129E9450B396458A1149FA7AFAD8CAA15FEC@red-msg-05.redmond.corp.microsoft.com>
To: "'bbrodie@savagesoftware.com'" <bbrodie@savagesoftware.com>, www-dom@w3.org
It will remove it.  setCssText is setting the _entire_ cssText - otherwise,
it should be called "appendCssText".

-----Original Message-----
From: bbrodie@savagesoftware.com [mailto:bbrodie@savagesoftware.com]
Sent: Thursday, September 14, 2000 2:27 PM
To: www-dom@w3.org
Subject: Expected behavior of CSSRule's setCssText.


Should the setCssText method of a CSSRule that contains a style
declaration [eg. CSSStyleRule] behave similarly to the setCssText of
CSSStyleDeclaration.  I.e can it be used to add CSSValues to the rule's
internal style declaration.  Example:
	styleRule.setCssText("H1 {font-size: 10pt}");
	styleRule.setCssText("H1 {ascent:10}"); 
Should the last line remove 'font-size' from the style's internal style
declaration or will it simply append the 'ascent' value, leaving the
'font-size' value intact.  The latter behavior seems the more reasonable
solution, but it is not stated in the specification.  If the former
behavior is followed then there will be problems dealing with outstanding
CSSValues.

Thanks for the clarification.
---
Blaine
	
Received on Thursday, 14 September 2000 20:00:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT