grid-overflow-padding-002.html (1238B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Grid Layout Test: Grid areas and 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 a combination of padding and the grid overflows the grid container, and that the padding is not applied to abspos positioning."> 10 <link href="/css/support/grid.css" rel="stylesheet"> 11 <style> 12 .grid { 13 grid: 120px / 120px; 14 width: 100px; 15 height: 100px; 16 box-sizing: border-box; 17 padding: 10px 20px 20px 10px; 18 overflow: auto; 19 } 20 .abspos { 21 position: absolute; 22 width: 10px; 23 height: 10px; 24 top: 140px; 25 left: 140px; 26 } 27 </style> 28 <p>The test passes if you see a grey square below and both scrollbars are visible.</p> 29 <div class="grid"><div class=abspos></div></div>