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

Re: RE: Expected behavior of CSSRule's setCssText.

From: Blaine Brodie <bbrodie@savagesoftware.com>
Date: Fri, 15 Sep 2000 13:28:17 -0700
Message-id: <fc.0085846d00011e063b9aca0023705192.11e09@savagesoftware.com>
To: www-dom@w3.org, cwilso@microsoft.com
>It will remove it.  setCssText is setting the _entire_ cssText -
>otherwise,
>it should be called "appendCssText".
Hi Chris,

'appendCssText' is probably a better name, however CSSStyleDeclaration's
setCssText, according to the current description, does not remove any
properties.  It is only capable of resetting and appending additional
properties.
----
Blaine
>
>
>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.
Received on Friday, 15 September 2000 16:28:27 GMT

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