fune/testing/web-platform/tests/css/css-grid/grid-model/grid-container-scrollbars-sizing-002.html
Gyuyoung Kim 7e855f8f51 Bug 1630846 [wpt PR 23045] - [css-grid] Migrate grid-container-width-should-include-scroll-bar-width.html to WPT, a=testonly
Automatic update from web-platform-tests
[css-grid] Migrate grid-container-width-should-include-scroll-bar-width.html to WPT

This CL migrates
grid-container-width-should-include-scroll-bar-width.html
from fast/css-grid-layout to
external/wpt/css/css-grid/grid-model with WPT styles,
adding links to the relevant specs, and test description.

Additionally, this test is renamed to
grid-scrollbars-sizing-002.html to be align with existing
tests.

Bug: 1063749
Change-Id: Iec5c026bdcbf8d23cdef4a4789ee4c68c87e40ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2153456
Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
Reviewed-by: Manuel Rego <rego@igalia.com>
Cr-Commit-Position: refs/heads/master@{#760443}

--

wpt-commits: 2a0ac4cc10a6c486756ed77e74bb2593f52a9bf9
wpt-pr: 23045
2020-04-28 11:31:03 +00:00

34 lines
1.1 KiB
HTML

<!DOCTYPE html>
<title>CSS Grid Layout Test: Intrinsic logical width with scrollbars</title>
<link rel="author" title="Sunil Ratnu" href="mailto:sunil.ratnu@samsung.com">
<link rel="issue" href="https://codereview.chromium.org/535913002"/>
<link rel="help" href="https://drafts.csswg.org/css-grid/#overflow"/>
<link rel="stylesheet" href="/css/support/grid.css">
<link rel="stylesheet" href="/css/support/width-keyword-classes.css">
<link rel="match" href="../reference/grid-container-scrollbars-sizing-002-ref.html">
<meta name="assert" content="This test ensures that the grid container considers the scrollbars when computing the intrinsic logical widths."/>
<style>
.grid, .inline-grid {
overflow: scroll;
}
.gridItem {
width: 100px;
height: 100px;
background: green;
}
</style>
<body>
<div class='grid fit-content'>
<span class='gridItem'></span>
</div>
<div class='grid fit-content' style='overflow-y: hidden'>
<span class='gridItem'></span>
</div>
<div class='inline-grid fit-content'>
<span class='gridItem'></span>
</div>
<div class='inline-grid fit-content' style='overflow-y: hidden'>
<span class='gridItem'></span>
</div>
</body>