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

[css-flexbox] Migrate bug605682.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/605682).

Bug: 1063749
Change-Id: Iddba45cd44431e173f9d516d696da020f3412ac5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2126689
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@{#754866}
parent 2a16460a
<!DOCTYPE html> <!DOCTYPE html>
<script src="../../resources/testharness.js"></script> <html>
<script src="../../resources/testharnessreport.js"></script> <title>CSS Flexbox: margin: auto and overflow: auto with nested flexboxes.</title>
<script src="../../resources/check-layout-th.js"></script> <link rel="help" href="https://drafts.csswg.org/css-flexbox/#auto-margins">
<link rel="help" href="https://drafts.csswg.org/css-overflow-3/#overflow-properties">
<link rel="help" href="https://drafts.csswg.org/css-box-3/#margins">
<link rel="help" href="https://crbug.com/605682">
<meta name="assert" content="This test checks that 'margin: auto' set on the outer box gets properly handled when the inner box uses 'overflow: auto', in a layout with two nested flexboxes." />
<style> <style>
html, body { html, body {
...@@ -31,10 +35,15 @@ html, body { ...@@ -31,10 +35,15 @@ html, body {
.elm { .elm {
height: 10px; height: 10px;
} }
</style> </style>
<div id=log></div>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<body>
<div id=log></div>
<p>Below there should be a olive square <em>centered</em> inside a papayawhip box.</p> <p>Below there should be a olive square <em>centered</em> inside a papayawhip box.</p>
<div class="flexbox"> <div class="flexbox">
<div data-offset-x="250"> <div data-offset-x="250">
...@@ -43,8 +52,11 @@ html, body { ...@@ -43,8 +52,11 @@ html, body {
</div> </div>
</div> </div>
</div> </div>
<script> <script>
document.body.offsetTop; document.body.offsetTop;
document.getElementById("elm").style.height = "800px"; document.getElementById("elm").style.height = "800px";
checkLayout('.flexbox'); checkLayout('.flexbox');
</script> </script>
</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