mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:42:44 +00:00 
			
		
		
		
	 9ee64b5694
			
		
	
	
		9ee64b5694
		
	
	
	
	
		
			
			If there is a remaining margin-bottom in margin collapsing state tracker after laying out all boxes in the current BFC, it must be assigned to the last in-flow child since margin collapsing cannot occur across a formatting context boundary. The current issue where margin-bottom may be counted twice due to "collapse through" margins in the last in-flow child box is addressed with this fix by excluding such boxes during the search for a box to assign the remaining margin. Test case coming with this fix has a layout bug with incorrectly computed line height.
		
			
				
	
	
		
			14 lines
		
	
	
		
			No EOL
		
	
	
		
			264 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			No EOL
		
	
	
		
			264 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!doctype html><style>
 | |
| * {
 | |
|     border: 1px solid black;
 | |
|     font-family: 'SerenitySans';
 | |
| }
 | |
| body {
 | |
|     padding: 0;
 | |
|     margin: 0;
 | |
|     display: inline-block;
 | |
| }
 | |
| .hmm {
 | |
|     margin-bottom: 100px;
 | |
| }
 | |
| </style><body><div class=hmm>suspiciously tall box</div> </body></html> |