W3C home > Mailing lists > Public > www-style@w3.org > August 2013

CSSStyleDeclaration: Setting only a value or a priority

From: Peter Sloetjes <pjs.nl@live.com>
Date: Sat, 10 Aug 2013 17:32:33 +0200
Message-ID: <DUB119-W4278E92C9DD13C3E85C782E6590@phx.gbl>
To: "www-style@w3.org" <www-style@w3.org>
The current specification of CSSStyleDeclaration.setProperty makes it necessary to call either 
'getPropertyPriority' or 'getPropertyValue' in case only a property value or a property priority is to be modified.
For the purpose of faster and simpler low level style transformations, I would like to see either: 
1) the CSSStyleDeclaration interface to be extended with the functions 'setPropertyValue' and 'setPropertyPriority', or
 the CSSStyleDeclaration.setProperty function to accept 'null' for the 
property value or property priority as an indication that the 
value/priority should not be changed.

PJS, Firefox add-on developer. 		 	   		   		 	   		  
Received on Sunday, 11 August 2013 20:56:29 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:30 UTC