mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:02:45 +00:00 
			
		
		
		
	 0ab31d8c84
			
		
	
	
		0ab31d8c84
		
	
	
	
	
		
			
			This patch adds the setProperty(name, value) API to CSSStyleDeclaration. Setting an invalid or empty value will cause the property to be removed from the declaration. Note that this only works on mutable declarations (i.e element.style) and not on resolved declarations (i.e window.getComputedStyle(element)).
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			331 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			331 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| [CustomGet,CustomSet,CustomHasProperty]
 | |
| interface CSSStyleDeclaration {
 | |
| 
 | |
|     readonly attribute unsigned long length;
 | |
|     CSSOMString item(unsigned long index);
 | |
| 
 | |
|     CSSOMString getPropertyValue(CSSOMString property);
 | |
| 
 | |
|     [CEReactions] undefined setProperty(CSSOMString property, [LegacyNullToEmptyString] CSSOMString value);
 | |
| 
 | |
| };
 |