Commit ab4cf9c7 authored by Mario Sanchez Prada's avatar Mario Sanchez Prada Committed by Commit Bot

[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: default avatarRobert Ma <robertma@chromium.org>
Reviewed-by: default avatarChristian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#754867}
parent fb1df663
<!DOCTYPE html> <!DOCTYPE html>
<script src="../../resources/testharness.js"></script> <html>
<script src="../../resources/testharnessreport.js"></script> <title>CSS Flexbox: align-self: center content with flex-direction: column.</title>
<script src="../../resources/check-layout-th.js"></script> <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> <style>
html, body { html, body {
margin: 0; margin: 0;
...@@ -22,7 +26,12 @@ body { ...@@ -22,7 +26,12 @@ body {
} }
</style> </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')"> <body onload="checkLayout('.content')">
<div class="content" data-offset-x="0"> <div class="content" data-offset-x="0">
<div data-offset-x="0">X</div> <div data-offset-x="0">X</div>
<div>X</div> <div>X</div>
...@@ -30,3 +39,6 @@ body { ...@@ -30,3 +39,6 @@ body {
<div>X</div> <div>X</div>
<div>X</div> <div>X</div>
</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