mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:52:45 +00:00 
			
		
		
		
	 00e3e82bbd
			
		
	
	
		00e3e82bbd
		
	
	
	
	
		
			
			When we determine that a size is definite because it can be resolved now without performing layout, we also need to account for the box-sizing property. This lets us remove a hack from flex layout where box-sizing:border-box was manually undone at one point in the layout algorithm.
		
			
				
	
	
		
			14 lines
		
	
	
		
			No EOL
		
	
	
		
			343 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			No EOL
		
	
	
		
			343 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!doctype html><html><head><style>
 | |
|     * {
 | |
|         font: 20px SerenitySans;
 | |
|     }
 | |
|     .button {
 | |
|         align-items: center;
 | |
|         background-color: orange;
 | |
|         display: inline-flex;
 | |
|         height: 30px;
 | |
|         padding: 20px;
 | |
|         font-size: 20px;
 | |
|         box-sizing: border-box;
 | |
|     }
 | |
| </style></head><body><div class="button">Hello |