Commit 09c69cb4 authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

[css-grid] Migrate fixed-width-intrinsic-width-should-exclude-scrollbar-width-in-grid.html to WPT

BUG=767015, 1063749
R=rego@igalia.com

Change-Id: Ie7b38d16617059f7170c4e01c70ad7bf22cceec7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2143834Reviewed-by: default avatarManuel Rego <rego@igalia.com>
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Cr-Commit-Position: refs/heads/master@{#759205}
parent c05c1998
<!DOCTYPE html>
<html>
<link href="resources/grid.css" rel="stylesheet">
<title>CSS Grid: intrinsic width of fixed-width grid items.</title>
<link rel="author" title="Sunil Ratnu" href="mailto:sunil.ratnu@samsung.com"/>
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#overflow"/>
<meta name="assert" content="This test ensures that scrollbar width is not accounted for fixed-width grid items' intrinsic width."/>
<link href="/css/support/grid.css" rel="stylesheet"/>
<style>
.grid {
grid-template-columns: 400px 500px;
......@@ -14,11 +18,11 @@
}
</style>
<script src="../../resources/check-layout.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<body onload="checkLayout('.grid')">
<p>This test checks that scrollbar width should not be added to the width of fixed-width grid items.</p>
<div class="grid">
<div class="firstRowFirstColumn gridItemScrollOverflow" data-expected-width="50" data-expected-height="50"></div>
<div class="firstRowSecondColumn gridItemScrollOverflow" data-expected-width="50" data-expected-height="50"></div>
......
This test checks that scrollbar width should not be added to the width of fixed-width grid items.
PASS
PASS
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