gecko-dev/testing/web-platform/tests/css/css-flexbox/remove-out-of-flow-child-crash.html
Antonio Gomes 7b2604d05d Bug 1628017 [wpt PR 22753] - [css-flexbox] Migrate crash-removing-out-of-flow-child.html to WPT, a=testonly
Automatic update from web-platform-tests
[css-flexbox] Migrate crash-removing-out-of-flow-child.html to WPT

This CL adds <title>, <link rel=help> and <meta name=assert> data to the
test case. Additionally, it moves/renames it to
external/wpt/css/css-flexbox/remove-out-of-flow-child-crash.html

Last, the calls to testRunner.dumpAsText() is dropped.

BUG=1063749
R=smcgruer@chromium.org

Change-Id: I33a81ab8ac0b93c4794e530ca7ea3c56f0b5e41b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2139902
Commit-Queue: Robert Ma <robertma@chromium.org>
Reviewed-by: Stephen McGruer <smcgruer@chromium.org>
Reviewed-by: David Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#757217}

--

wpt-commits: 1c45545295c1c174583b11c5ed302fc4f23b79d1
wpt-pr: 22753
2020-04-13 14:08:17 +00:00

28 lines
760 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>CSS Flexbox: absolutely position child removal.</title>
<link rel="stylesheet" href="support/flexbox.css" >
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#abspos-items">
<meta name="assert" content="This test ensures that removing absolute positioned flexbox children works."/>
</head>
<body>
<div id="outer" class="inline-flexbox">
<div id="middle" class="inline-flexbox">
<div id="inner" style="position: absolute">absolute</div>
</div>
</div>
<script>
var outer = document.getElementById("outer");
var middle = document.getElementById("middle");
var inner = document.getElementById("inner");
// Force layout.
outer.offsetHeight;
middle.removeChild(inner);
</script>
</body>
</html>