mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:02:45 +00:00 
			
		
		
		
	 25a3d0d643
			
		
	
	
		25a3d0d643
		
	
	
	
	
		
			
			Instead of applying relative offsets (like position:relative insets) during painting and hit testing, we now do a pass at the end of layout and assign the final resolved offsets to paintables. This makes painting and hit testing easier since they don't have to think about relative offsets, and it also fixes a bug where offsets were not applied to text fragments inside inline-flow elements that were themselves position:relative.
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			163 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			163 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <style>
 | |
| b {
 | |
|     position: relative;
 | |
|     top: 25px;
 | |
| }
 | |
| i {
 | |
|     position: relative;
 | |
|     top: 25px;
 | |
|     right: 25px;
 | |
| }
 | |
| </style>
 | |
| <body>foo <b>bar</b> <b><i>baz</i></b>
 |