mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 22:32:44 +00:00 
			
		
		
		
	 69df94ec5c
			
		
	
	
		69df94ec5c
		
	
	
	
	
		
			
			This function uses our existing hit testing code to determine the topmost element at the given coordinates relative to the viewport.
		
			
				
	
	
		
			5 lines
		
	
	
	
		
			162 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
	
		
			162 B
		
	
	
	
		
			Text
		
	
	
	
	
	
|   Negative coordinates return null: true
 | |
| Coordinates outside the viewport return null: true
 | |
| <HTML id="root-element" >
 | |
| <DIV id="large-box" >
 | |
| <DIV id="small-box" >
 |