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