mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 05:52:46 +00:00 
			
		
		
		
	 8ba7bd1b67
			
		
	
	
		8ba7bd1b67
		
	
	
	
	
		
			
			This starts working immediately in BFC thanks to calculate_inner_width being used for width constraints. :^)
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			303 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			303 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!doctype html><style>
 | |
| * { border: 1px solid black; }
 | |
| .box {
 | |
|     background: orange;
 | |
|     min-width: fit-content;
 | |
|     width: 10px;
 | |
| }
 | |
| .box2 {
 | |
|     background: pink;
 | |
|     max-width: fit-content;
 | |
|     width: 1000px;
 | |
| }
 | |
| </style><div class="box">Well hello friends</div><div class="box2">Well hello friends</div>
 |