grid-overflow-padding-001.html (1001B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Grid Layout Test: Grid padding 'overflowing' the grid container size</title> 4 <link rel="author" title="Tab Atkins-Bittner" href="https://xanthir.com/contact"> 5 <link rel="author" title="Elika J Etemad" href="http://inkedblade.org/contact"> 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 scrollbars are shown when end-edge padding overflows the grid container."> 10 <link href="/css/support/grid.css" rel="stylesheet"> 11 <style> 12 .grid { 13 grid: 100px / 100px; 14 width: 100px; 15 height: 100px; 16 box-sizing: border-box; 17 padding: 0 50px 50px 0; 18 overflow: auto; 19 } 20 </style> 21 <p>The test passes if you see a grey square below and both scrollbars are visible.</p> 22 <div class="grid"></div>