mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-04 07:10:57 +00:00 
			
		
		
		
	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);
 | 
						|
 | 
						|
};
 |