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

Expected behavior of CSSRule's setCssText.

From: Blaine Brodie <bbrodie@savagesoftware.com>
Date: Thu, 14 Sep 2000 14:26:31 -0700
Message-id: <fc.0085846d000119cf0085846d000119cf.119f1@savagesoftware.com>
To: www-dom@w3.org
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

Thanks for the clarification.
Received on Thursday, 14 September 2000 17:26:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:07 UTC