| <!DOCTYPE html> |
| <link href="resources/grid.css" rel="stylesheet"> |
| <link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel=stylesheet> |
| <style> |
| .grid { |
| overflow-y: scroll; |
| } |
| |
| .item { |
| width: 200px; |
| } |
| |
| .oneColumn { |
| grid-template-columns: 200px; |
| } |
| |
| .fourColumns { |
| grid-template-columns: repeat(4, 50px); |
| } |
| </style> |
| <script src="../../resources/check-layout.js"></script> |
| <p>This test checks that grid container scrollbar is computed properly during intrinsic width calculation.</p> |
| <body onload="checkLayout('.grid')"> |
| <div class="grid min-content" data-expected-client-width="200"> |
| <div class="item">item</div> |
| </div> |
| <div class="grid max-content" data-expected-client-width="200"> |
| <div class="item">item</div> |
| </div> |
| <div class="grid fit-content" data-expected-client-width="200"> |
| <div class="item">item</div> |
| </div> |
| <div class="grid oneColumn min-content" data-expected-client-width="200"> |
| item |
| </div> |
| <div class="grid oneColumn max-content" data-expected-client-width="200"> |
| item |
| </div> |
| <div class="grid oneColumn fit-content" data-expected-client-width="200"> |
| item |
| </div> |
| <div class="grid fourColumns min-content" data-expected-client-width="200"> |
| item |
| </div> |
| <div class="grid fourColumns max-content" data-expected-client-width="200"> |
| item |
| </div> |
| <div class="grid fourColumns fit-content" data-expected-client-width="200"> |
| item |
| </div> |
| </body> |