mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 22:02:44 +00:00 
			
		
		
		
	 4cc3c41269
			
		
	
	
		4cc3c41269
		
	
	
	
	
		
			
			This fixes the sizing of the arrow icons displayed to the left of parent sections on a table of contents on Wikipedia articles, which are sized using the equation `calc(max(0.75em, 12px))`. Now, the icon will not expand past the edges of the box they are within, avoiding clipping the edges of the arrows.
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			431 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			431 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html>
 | |
| <head>
 | |
|     <link rel="match" href="reference/background-size-calc-ref.html" />
 | |
|     <style>
 | |
|         span {
 | |
|             display: inline-block;
 | |
|             min-width: 12px;
 | |
|             min-height: 12px;
 | |
|             background-image: url("assets/2x2checkerboard.png");
 | |
|             background-size: calc(max(0.75em, 12px));
 | |
|         }
 | |
|     </style>
 | |
| </head>
 | |
| <body><span></span><img src="assets/2x2checkerboard.png">
 |