mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:22:43 +00:00 
			
		
		
		
	 508927cae2
			
		
	
	
		508927cae2
		
	
	
	
	
		
			
			When there are floats present inside an IFC, we must coordinate with the parent BFC to calculate the automatic width of the IFC's block box. This is because the IFC is not directly aware of floats. Only the BFC knows enough about them to account for them in automatic sizing.
		
			
				
	
	
		
			15 lines
		
	
	
		
			No EOL
		
	
	
		
			296 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			No EOL
		
	
	
		
			296 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!doctype html><style>
 | |
|     * {
 | |
|     }
 | |
|     body {
 | |
|         position: absolute;
 | |
|     }
 | |
|     .black {
 | |
|         background: magenta;
 | |
|         border: 50px solid black;
 | |
|     }
 | |
|     .green {
 | |
|         float: left;
 | |
|         border: 20px solid lime;
 | |
|     }
 | |
| </style><body><div class="black"><div class="green"></div>  |