mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:52:44 +00:00 
			
		
		
		
	 2c4908094c
			
		
	
	
		2c4908094c
		
	
	
	
	
		
			
			The used width is already a content width, which doesn't include borders. Border widths should be subtracted from the specified width instead, since that initially specifies the total width including borders, for consistent comparison. Also handle table box padding as an additional fix.
		
			
				
	
	
		
			22 lines
		
	
	
		
			No EOL
		
	
	
		
			363 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			No EOL
		
	
	
		
			363 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <style>
 | |
|     table {
 | |
|         border: 5px solid black;
 | |
|         text-align: center;
 | |
|         border-collapse: separate;
 | |
|         border-spacing: 10px;
 | |
|         padding-left: 10px;
 | |
|         padding-right: 10px;
 | |
|     }
 | |
| 
 | |
|     td {
 | |
|         border: 5px solid blue;
 | |
|         padding: 10px;
 | |
|     }
 | |
| </style>
 | |
| 
 | |
| <table>
 | |
|     <tr>
 | |
|         <td>A</td>
 | |
|         <td>B</td>
 | |
|     </tr>
 | |
| </table> |