mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:02:43 +00:00 
			
		
		
		
	 c197fb4037
			
		
	
	
		c197fb4037
		
	
	
	
	
		
			
			This fixes an issue where images with padding and/or border did not have their size adjusted for `border-box`, thereby becoming larger than intended by the author.
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			263 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			263 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!doctype html><style>
 | |
| img {
 | |
|     padding: 20px;
 | |
|     box-sizing: border-box;
 | |
|     border: 1px solid black;
 | |
| }
 | |
| .with-height {
 | |
|     height: 100px;
 | |
| }
 | |
| .with-width {
 | |
|     width: 100px;
 | |
| }
 | |
| </style><img class="with-height" src="120.png"><img class="with-width" src="120.png">
 |