compute-intrinsic-widths-scrollbar-001.html (970B)
1 <!DOCTYPE html> 2 <title>CSS Grid: width of grid container with scrollbar.</title> 3 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com"> 4 <link rel="help" href="https://drafts.csswg.org/css-grid-1/#overflow"> 5 <meta name="assert" content="This test ensures that a grid container scrollbar is computed properly during intrinsic width calculation."/> 6 7 <link href="/css/support/grid.css" rel="stylesheet"/> 8 <link href="/css/support/width-keyword-classes.css" rel="stylesheet"/> 9 <style> 10 .grid { 11 overflow-y: scroll; 12 grid-template-columns: repeat(4, 50px); 13 } 14 </style> 15 <script src="/resources/testharness.js"></script> 16 <script src="/resources/testharnessreport.js"></script> 17 <script src="/resources/check-layout-th.js"></script> 18 <body onload="checkLayout('.grid')"> 19 <div class="grid min-content" data-expected-client-width="200"> 20 item 21 </div> 22 <div class="grid max-content" data-expected-client-width="200"> 23 item 24 </div> 25 </body>