gecko-dev/testing/web-platform/tests/css/css-flexbox/flexitem-no-margin-collapsing.html
Gyuyoung Kim ebec4cf732 Bug 1625398 [wpt PR 22488] - [css-flexbox] Move flexitem-no-margin-collapsing.html test to WPT, a=testonly
Automatic update from web-platform-tests
[css-flexbox] Move flexitem-no-margin-collapsing.html test to WPT

This CL moves flex-item-contains-strict.html test from
css3/css-flexbox to external/wpt/css/css-flexbox with WPT
styles, adding links to the relevant specs, a proper title,
and test description.

Bug: 1063749
Change-Id: I8c688b51efc8890250073778b76bef1f23f8fa24
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2123573
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Reviewed-by: Robert Ma <robertma@chromium.org>
Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
Cr-Commit-Position: refs/heads/master@{#754783}

--

wpt-commits: c84b065ec2d9c021d8f4bee1558b1f447762551b
wpt-pr: 22488
2020-04-06 12:43:36 +00:00

34 lines
999 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>CSS Flexbox: flex items don't collapse margins</title>
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#item-margins">
<link href="support/flexbox.css" rel="stylesheet">
<meta name="assert" content="This test ensures that flex items don't collapse margins
with their children.">
<style>
.flexbox {
background-color: lightgrey;
}
.flexbox p {
height: 100px;
width: 100px;
margin: 10px;
background-color: blue;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
</head>
<body onload="checkLayout('.flexbox')">
<div id=log></div>
<div class="flexbox" style="position: relative">
<div data-offset-x="0" data-offset-y="0" data-expected-width="120" data-expected-height="120">
<p data-offset-x="10" data-offset-y="10" data-expected-width="100" data-expected-height="100"></p>
</div>
</div>
</body>
</html>