Commit fe1175d9 authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

[css-grid] Migrate compute-intrinsic-widths-scrollbar.html to WPT

BUG=767015, 1063749
R=rego@chromium.org

Change-Id: Ia09f38dfa050611dc0204b00c7d43fc911c30420
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2145833
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Reviewed-by: default avatarManuel Rego <rego@igalia.com>
Cr-Commit-Position: refs/heads/master@{#758797}
parent ba33cdb0
<!DOCTYPE html>
<title>CSS Grid: width of grid container with scrollbar.</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#overflow">
<meta name="assert" content="This test ensures that a grid container scrollbar is computed properly during intrinsic width calculation."/>
<link href="/css/support/grid.css" rel="stylesheet"/>
<link href="/css/support/width-keyword-classes.css" rel="stylesheet"/>
<style>
.grid {
overflow-y: scroll;
grid-template-columns: repeat(4, 50px);
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<body onload="checkLayout('.grid')">
<div class="grid min-content" data-expected-client-width="200">
item
</div>
<div class="grid max-content" data-expected-client-width="200">
item
</div>
</body>
This test checks that grid container scrollbar is computed properly during intrinsic width calculation.
item
PASS
item
PASS
<!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;
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">
item
</div>
<div class="grid max-content" data-expected-client-width="200">
item
</div>
</body>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment