gecko-dev/testing/web-platform/tests/css/css-flexbox/align-self-014.html
Mario Sanchez Prada 0d48982f3c Bug 1626006 [wpt PR 22539] - [css-flexbox] Migrate bug750553.html test from css3/flexbox to WPT, a=testonly
Automatic update from web-platform-tests
[css-flexbox] Migrate bug750553.html test from css3/flexbox to WPT

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

Also, rename its filename to something more descriptive and less
Chromium-specific (it currently references crbug.com/750553).

Bug: 1063749
Change-Id: I44773fca1752cff353f430f2b4d5c5bffdd6eb82
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2126994
Commit-Queue: Mario Sanchez Prada <mario@igalia.com>
Reviewed-by: Robert Ma <robertma@chromium.org>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#754867}

--

wpt-commits: 4276ad6a868f52246d1c7d54f0c01a1a4e8f0967
wpt-pr: 22539
2020-04-06 12:43:34 +00:00

44 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html>
<title>CSS Flexbox: align-self: center content with flex-direction: column.</title>
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-direction-property">
<link rel="help" href="https://drafts.csswg.org/css-align/#align-self-property">
<link rel="help" href="https://crbug.com/750553"/>
<meta name="assert" content="This test ensures that no unnecessary horizontal offset is applied to inline content in a 'align-self: center' box, inside of a flexbox with 'flex-direction: column'."/>
<style>
html, body {
margin: 0;
}
body {
display: flex;
flex-direction: column;
}
.content {
align-self: center;
}
.content > div {
width: 400px;
display: inline-block;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<body onload="checkLayout('.content')">
<div class="content" data-offset-x="0">
<div data-offset-x="0">X</div>
<div>X</div>
<div>X</div>
<div>X</div>
<div>X</div>
</div>
</body>
</html>