grid-areas-overflowing-grid-container-009.html (1179B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Grid Layout Test: Grid areas 'overflowing' the grid container size</title> 4 <link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com"> 5 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 6 <link rel="help" href="https://drafts.csswg.org/css-grid/#grid-model"> 7 <link rel="help" href="https://drafts.csswg.org/css-overflow-3/#propdef-overflow"> 8 <link rel="match" href="reference/100x100-grey-box-with-scrollbars.html"> 9 <meta name="assert" content="This test verifies that the scrollbars are shown on a grid with an item that has large margins placed inside the boundaries of the grid container, if there are grid areas which exceed the grid container size."> 10 <link href="/css/support/grid.css" rel="stylesheet"> 11 <style> 12 .grid { 13 grid: 150px / 150px; 14 width: 100px; 15 height: 100px; 16 overflow: auto; 17 } 18 .item { 19 width: 100px; 20 height: 100px; 21 margin-right: 50px; 22 margin-bottom: 50px; 23 } 24 </style> 25 <p>The test passes if you see a grey square below and both scrollbars are visible.</p> 26 <div class="grid"><div class="item"></div></div>