mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:12:46 +00:00 
			
		
		
		
	 d1a01c4c65
			
		
	
	
		d1a01c4c65
		
	
	
	
	
		
			
			Changing `try_compute_width()` to return width and margins, instead of mutating them in the box's state makes it works in cases when box has min-width or max-width and this function needs to be called multiple times. Fixes https://github.com/SerenityOS/serenity/issues/21598
		
			
				
	
	
		
			20 lines
		
	
	
		
			No EOL
		
	
	
		
			362 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			No EOL
		
	
	
		
			362 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html><style>
 | |
|     * {
 | |
|       outline: 1px solid black !important;
 | |
|     }
 | |
|     html {
 | |
|       background: white;
 | |
|     }
 | |
|     body {
 | |
|       display: grid;
 | |
|       background: wheat;
 | |
|     }
 | |
|     section {
 | |
|       display: flex;
 | |
|       width: 100%;
 | |
|       min-width: 500px;
 | |
|       place-self: start;
 | |
|       background: pink;
 | |
|       height: 200px;
 | |
|     }
 | |
| </style><body><section> |