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

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

Bug: 1063749
Change-Id: I5c733fc995a0323a32ffd824e0713a6f251f7a50
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2126927
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@{#754879}
parent cac20471
<!DOCTYPE html>
<html>
<title>CSS Flexbox: layout of child SVG elements.</title>
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-direction-property">
<link rel="help" href="https://drafts.csswg.org/css-position/#position-property">
<link rel="help" href="https://crbug.com/633212"/>
<meta name="assert" content="This test ensures that a flexbox and its flex items are properly laid out when containing an empty SVG element in an abspos container."/>
<style>
html, body {
margin: 0;
......@@ -26,26 +33,27 @@ html, body {
}
</style>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
function runTest() {
test(function() {
assert_equals(document.getElementById('flexbox').offsetWidth,
document.getElementById('flexitem').offsetWidth);
}, "sizes");
}
</script>
<body>
<body onload="runTest()">
<div id="container">
<div id="flexbox">
<div id="flexitem">
<div id="abspos">
<svg></svg>
</div>
<div id="flexitem">
<div id="abspos">
<svg></svg>
</div>
</div>
</div>
</div>
<script>
test(function() {
assert_equals(document.getElementById('flexbox').offsetWidth,
document.getElementById('flexitem').offsetWidth);
}, "sizes");
</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