mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:02:44 +00:00 
			
		
		
		
	 de970c2dce
			
		
	
	
		de970c2dce
		
	
	
	
	
		
			
			Previously, the width and height of grid items were set to match the size of the grid area they belonged to. With this change, if a grid item has preferred width or height specified to not "auto" value it will be resolved using grid area as containing block and used instead.
		
			
				
	
	
		
			13 lines
		
	
	
		
			No EOL
		
	
	
		
			270 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			No EOL
		
	
	
		
			270 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <style>
 | |
| .grid-container {
 | |
|     display: grid;
 | |
|     grid-template-columns: auto auto;
 | |
|     grid-template-rows: auto;
 | |
| }
 | |
| 
 | |
| .first {
 | |
|     background-color: lightcoral;
 | |
|     width: 100px;
 | |
|     height: 200px;
 | |
| }
 | |
| </style><div class="grid-container"><div class="first">First</div></div> |