mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:42:45 +00:00 
			
		
		
		
	 2ed5415750
			
		
	
	
		2ed5415750
		
	
	
	
	
		
			
			If a box has clearance and margin bottom of preceding box is greater than static y of the box then it should also affect y offset in current block container so subsequent boxes will get correct y position too.
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			418 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			418 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <style>
 | |
|     .clearfix {
 | |
|         clear: both;
 | |
|     }
 | |
|     .square {
 | |
|         float: left;
 | |
|         width: 49px;
 | |
|         height: 49px;
 | |
|     }
 | |
|     .white {
 | |
|         background-color: salmon;
 | |
|         width: 100px;
 | |
|         height: 100px;
 | |
|     }
 | |
|     .black {
 | |
|         background-color: slateblue;
 | |
|     }
 | |
| </style>
 | |
| <div>
 | |
|     <div class="square white"></div>
 | |
|     <div class="clearfix"></div>
 | |
|     <div class="square black"></div>
 | |
| </div>
 |