mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:42:43 +00:00 
			
		
		
		
	 411b28fc59
			
		
	
	
		411b28fc59
		
	
	
	
	
		
			
			In order to fix this, I also had to reorganize the code so that we create an independent formatting context even for block-level boxes that don't have any children. This accidentally improves a table layout test as well (for empty tables).
		
			
				
	
	
		
			20 lines
		
	
	
		
			No EOL
		
	
	
		
			323 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			No EOL
		
	
	
		
			323 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!doctype html><style>
 | |
| * {
 | |
|     padding: 0;
 | |
| }
 | |
| html {
 | |
|     background: white;
 | |
| }
 | |
| body {
 | |
|     background: pink;
 | |
| }
 | |
| .not-bfc {
 | |
|     margin-top: 30px;
 | |
|     height: 20px;
 | |
|     background: orange;
 | |
| }
 | |
| .bfc {
 | |
|     margin-top: 30px;
 | |
|     display: flow-root;
 | |
| }
 | |
| </style><div class="not-bfc"></div><div class=bfc></div><div class="not-bfc"></div> |