mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:02:46 +00:00 
			
		
		
		
	 e2c5e31292
			
		
	
	
		e2c5e31292
		
	
	
	
	
		
			
			This change implements following paragraph from placement algorithm in the spec: "If the largest column span among all the items without a definite column position is larger than the width of the implicit grid, add columns to the end of the implicit grid to accommodate that column span." There were places in the grid implementation code with copies of this text, but those were completely unrelated to the code where they were being pasted so I removed them.
		
			
				
	
	
		
			13 lines
		
	
	
		
			No EOL
		
	
	
		
			292 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			No EOL
		
	
	
		
			292 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <style>
 | |
|     .container {
 | |
|         width: 300px;
 | |
|         display: grid;
 | |
|         grid-template-columns: 100px;
 | |
|         grid-template-rows: 100px;
 | |
|     }
 | |
| 
 | |
|     .item {
 | |
|         background-color: purple;
 | |
|         grid-column: span 2;
 | |
|     }
 | |
| </style><div class="container"><div class="item"></div></div> |