mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:22:44 +00:00 
			
		
		
		
	 d1226f0b15
			
		
	
	
		d1226f0b15
		
	
	
	
	
		
			
			Previously, querying `offsetTop` or `offsetLeft` of an inline element with no text would cause a crash.
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			294 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			294 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <script src="../include.js"></script>
 | |
| <script>
 | |
|     test(() => {
 | |
|         const element = document.getElementById("empty");
 | |
|         println("Top: " + element.offsetTop);
 | |
|         println("Left: " + element.offsetLeft);
 | |
|     });
 | |
| </script>
 | |
| <body>
 | |
|     <span id="empty"></span>
 | |
| </body>
 |