- From: Chris Wilson <cwilso@microsoft.com>
- Date: Thu, 14 Sep 2000 16:59:21 -0700
- 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 UTC