mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:52:45 +00:00 
			
		
		
		
	 af004ff0ef
			
		
	
	
		af004ff0ef
		
	
	
	
	
		
			
			We're gonna need to handle this in many more places, this patch only adds it to calculate_inner_width().
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			410 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			410 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!doctype html><style>
 | |
| * {
 | |
|     border: 1px solid black;
 | |
| }
 | |
| .foo {
 | |
|     background: pink;
 | |
|     width: min-content;
 | |
| }
 | |
| .bar {
 | |
|     background: orange;
 | |
|     width: 50%;
 | |
|     max-width: min-content;
 | |
| }
 | |
| .baz {
 | |
|     background: magenta;
 | |
|     width: 1%;
 | |
|     min-width: min-content;
 | |
| }
 | |
| </style>
 | |
| <div class="foo">width: min-content</div>
 | |
| <div class="bar">max-width: min-content</div>
 | |
| <div class="baz">min-width: min-content</div>
 |