Commit 6bdfbb8c authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

[css-grid] Migrate grid-container-margin-border-padding-scrollbar.html to WPT

BUG=767015, 1063749

Change-Id: I793f33d54ae5b57643fc669664793eb7e848ece9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2153265
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Reviewed-by: default avatarManuel Rego <rego@igalia.com>
Cr-Commit-Position: refs/heads/master@{#760031}
parent cb8cbd35
<!DOCTYPE html>
<html>
<head>
<link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel="stylesheet">
<link href="../css-intrinsic-dimensions/resources/height-keyword-classes.css" rel="stylesheet">
<link href="resources/grid.css" rel="stylesheet">
<title>CSS Grid: grid container's size includes border, padding and scrollbar.</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com"/>
<link rel="help" href="https://drafts.csswg.org/css-grid/#intrinsic-sizes"/>
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#overflow"/>
<meta name="assert" content="This test checks that grid container size includes border, padding and scrollbar; ignoring margin as expected."/>
<link rel="issue" href="https://crbug.com/532032"/>
<link href="/css/support/grid.css" rel="stylesheet"/>
<link href="/css/support/width-keyword-classes.css" rel="stylesheet">
<link href="/css/support/height-keyword-classes.css" rel="stylesheet">
<style>
.margin {
margin: 10px;
......@@ -27,11 +33,11 @@
background: lime;
}
</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>
</head>
<body onload="checkLayout('.grid');">
<p>This test checks that grid container size includes border, padding and scrollbar; ignoring margin as expected.</p>
<div class="grid min-content" data-expected-width="100" data-expected-height="100">
<div class="item" data-expected-width="100" data-expected-height="100"></div>
</div>
......@@ -95,6 +101,5 @@
<div class="grid min-content margin border padding scroll" data-expected-width="165" data-expected-height="165">
<div class="item" data-expected-width="100" data-expected-height="100"></div>
</div>
</body>
</html>
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