mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:02:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			646 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			646 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/Element.idl>
 | |
| #import <DOM/Node.idl>
 | |
| 
 | |
| [Exposed=(Window)]
 | |
| interface IntersectionObserver {
 | |
|     // FIXME: Should be: IntersectionObserverCallback
 | |
|     constructor(any callback, optional IntersectionObserverInit options = {});
 | |
| 
 | |
|     undefined observe(Element target);
 | |
|     undefined unobserve(Element target);
 | |
|     undefined disconnect();
 | |
| 
 | |
|     // FIXME:
 | |
|     // sequence<IntersectionObserverEntry> takeRecords();
 | |
| };
 | |
| 
 | |
| dictionary IntersectionObserverInit {
 | |
|     // FIXME: Should be: (Element or Document)?
 | |
|     Node? root = null;
 | |
| 
 | |
|     DOMString rootMargin = "0px";
 | |
| 
 | |
|     // FIXME: Should be: (double or sequence<double>)
 | |
|     any threshold = 0;
 | |
| };
 | 
