mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:42:44 +00:00 
			
		
		
		
	 ccf35a973f
			
		
	
	
		ccf35a973f
		
	
	
	
	
		
			
			Before this change, we always derived a box's baseline from its last child, even if the last child didn't have any line boxes inside. This caused baselines to slip further down vertically than expected. There are more baseline alignment issues to fix, but this one was responsible for a fair chunk of trouble. :^)
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			271 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			271 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <style>
 | |
| * {
 | |
|     border: 1px solid black;
 | |
| }
 | |
| .ib {
 | |
|     display: inline-block;
 | |
| }
 | |
| .ib div {
 | |
|     background: pink;
 | |
| }
 | |
| .ib div.float {
 | |
|     background: orange;
 | |
|     float: left;
 | |
| }
 | |
| </style><body>Hello friends<div class=ib><div>1st</div><div>2nd</div><div class="float">float</div>
 |