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> <!DOCTYPE html>
<html> <html>
<head> <head>
<link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel="stylesheet"> <title>CSS Grid: grid container's size includes border, padding and scrollbar.</title>
<link href="../css-intrinsic-dimensions/resources/height-keyword-classes.css" rel="stylesheet"> <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com"/>
<link href="resources/grid.css" rel="stylesheet"> <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> <style>
.margin { .margin {
margin: 10px; margin: 10px;
...@@ -27,11 +33,11 @@ ...@@ -27,11 +33,11 @@
background: lime; background: lime;
} }
</style> </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> </head>
<body onload="checkLayout('.grid');"> <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="grid min-content" data-expected-width="100" data-expected-height="100">
<div class="item" data-expected-width="100" data-expected-height="100"></div> <div class="item" data-expected-width="100" data-expected-height="100"></div>
</div> </div>
...@@ -95,6 +101,5 @@ ...@@ -95,6 +101,5 @@
<div class="grid min-content margin border padding scroll" data-expected-width="165" data-expected-height="165"> <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 class="item" data-expected-width="100" data-expected-height="100"></div>
</div> </div>
</body> </body>
</html> </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