mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:32:46 +00:00 
			
		
		
		
	 ce186dca70
			
		
	
	
		ce186dca70
		
	
	
	
	
		
			
			The margin from the containing blocks shouldn't be included in the amount by which we increment x after a float was places. That coordinate should be relative to the containing block. Fixes the comments layout on https://lobste.rs.
		
			
				
	
	
		
			29 lines
		
	
	
		
			No EOL
		
	
	
		
			410 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			No EOL
		
	
	
		
			410 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html lang="en">
 | |
| 
 | |
| <head>
 | |
|     <title>Block with hidden overflow after float</title>
 | |
|     <style>
 | |
|         .ab {
 | |
|             margin-left: 100px;
 | |
|         }
 | |
| 
 | |
|         .a {
 | |
|             float: left;
 | |
|         }
 | |
| 
 | |
|         .b {
 | |
|             overflow: hidden;
 | |
|         }
 | |
|     </style>
 | |
| </head>
 | |
| 
 | |
| <body>
 | |
|     <div class="ab">
 | |
|         <div class="a">A</div>
 | |
|         <div class="b">B</div>
 | |
|     </div>
 | |
| 
 | |
| </body>
 | |
| 
 | |
| </html> |