Commit 9fb77292 authored by Henrique Ferreiro's avatar Henrique Ferreiro Committed by Commit Bot

[css-grid] Migrate grid-item-margin-auto-columns-rows to WPT

Migrate this test out of
third_party/blink/web_tests/fast/css-grid-layout/ into the WPT-specific
directory, adding links to the relevant specs and a test assertion
describing its purpose.

Bug: 1063749, 767015
Change-Id: I0cb225a60fae7ae40746307983a795cdbfdd35f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2148779
Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>
Reviewed-by: default avatarJavier Fernandez <jfernandez@igalia.com>
Reviewed-by: default avatarManuel Rego <rego@igalia.com>
Cr-Commit-Position: refs/heads/master@{#759198}
parent 46e454d7
<!DOCTYPE html>
<html>
<script src="../../resources/check-layout.js"></script>
<link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel="stylesheet">
<link href="resources/grid.css" rel="stylesheet">
<title>CSS Grid: 'auto' sizes with item's margins</title>
<link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-grid">
<link rel="help" href="https://drafts.csswg.org/css-grid/#layout-algorithm">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=357419">
<meta name="assert" content="Check that the grid's rows and columns 'auto' sizes are updated accordingly to its grid-item's before and start margins."/>
<link href="/css/support/grid.css" rel="stylesheet">
<link href="/css/support/width-keyword-classes.css" rel="stylesheet">
<style>
.grid {
grid-template-rows: auto auto;
......@@ -38,11 +43,12 @@
padding-bottom: 10px;
}
</style>
</head>
<body onload="checkLayout('.grid')">
<div>This test checks that the grid's rows and columns 'auto' sizes are updated accordingly to its grid-item's before and start margins.</div>
<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>
<div class="grid fit-content" data-expected-width="40" data-expected-height="120">
<div class="gridItem marginTop firstRowFirstColumn"></div>
......@@ -78,6 +84,4 @@
<div class="gridItem secondRowSecondColumn"></div>
</div>
</div>
</body>
</html>
This test checks that the grid's rows and columns 'auto' sizes are updated accordingly to its grid-item's before and start margins.
PASS
PASS
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