mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:52:44 +00:00 
			
		
		
		
	 b96920a9d6
			
		
	
	
		b96920a9d6
		
	
	
	
	
		
			
			According to CSS Inline Layout Module Level 3 § 2.2 Step 1. atomic inlines should be layed out in a line box based on their margin box. However, up until this patch we were unconditionally considering only the border box during line box height calculation. This made us essentially drop all vertical margins for atomic inlines.
		
			
				
	
	
		
			16 lines
		
	
	
		
			No EOL
		
	
	
		
			329 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			No EOL
		
	
	
		
			329 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <style>
 | |
|     body {
 | |
|         font-family: 'SerenitySans';
 | |
|     }
 | |
| 
 | |
|     #inline-box {
 | |
|         background-color: red;
 | |
|         margin-top: 50px;
 | |
|         margin-bottom: 25px;
 | |
|         width: 100px;
 | |
|         height: 100px;
 | |
| 
 | |
|         display: inline-block;
 | |
|         vertical-align: top;
 | |
|     }
 | |
| </style>Well, <div id="inline-box"></div> friends. |