mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:32:46 +00:00 
			
		
		
		
	 16f1962f10
			
		
	
	
		16f1962f10
		
	
	
	
	
		
			
			This change makes hit-testing more consistent in the handling of hidden overflow by reusing the same clip-rectangles. Also, it fixes bugs where the box is visible for hit-testing even though it is clipped by the hidden overflow of the containing block.
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			467 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			467 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <script src="../include.js"></script>
 | |
| <style>
 | |
|     .overflow-hidden {
 | |
|         overflow: hidden;
 | |
|         border: 1px solid black;
 | |
|         width: 200px;
 | |
|         height: 200px;
 | |
|     }
 | |
| 
 | |
|     #box {
 | |
|         width: 400px;
 | |
|         height: 400px;
 | |
|         background-color: red;
 | |
|     }
 | |
| </style>
 | |
| <div class="overflow-hidden">
 | |
|     <div id="box"></div>
 | |
| </div>
 | |
| <script type="text/javascript">
 | |
|     test(() => {
 | |
|         printElement(internals.hitTest(300, 300).node);
 | |
|     });
 | |
| </script>
 |