mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:12:45 +00:00 
			
		
		
		
	 54b5a431a3
			
		
	
	
		54b5a431a3
		
	
	
	
	
		
			
			This implements the element's slot attribute itself, and setting the slot assignment on the element's shadow root.
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			538 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			538 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/DocumentFragment.idl>
 | |
| #import <DOM/InnerHTML.idl>
 | |
| 
 | |
| // https://dom.spec.whatwg.org/#shadowroot
 | |
| [Exposed=Window]
 | |
| interface ShadowRoot : DocumentFragment {
 | |
|     readonly attribute ShadowRootMode mode;
 | |
|     // FIXME: readonly attribute boolean delegatesFocus;
 | |
|     readonly attribute SlotAssignmentMode slotAssignment;
 | |
|     readonly attribute Element host;
 | |
|     // FIXME: attribute EventHandler onslotchange;
 | |
| };
 | |
| 
 | |
| ShadowRoot includes InnerHTML;
 | |
| 
 | |
| enum ShadowRootMode { "open", "closed" };
 | |
| enum SlotAssignmentMode { "manual", "named" };
 |