Files
rust_browser/tests/external/wpt/fixtures/wpt-css-css-flexbox-flex-margin-no-collapse-test.html
Zachary D. Rowitsch 16abbd78e7 Bulk-import 2899 WPT CSS reftests and add import tooling
Add scripts/import_wpt_reftests.py to sparse-clone the upstream WPT repo
and bulk-import qualifying CSS reftests (no JS, no external resources) as
known_fail entries. 23 tests already pass and are promoted. The import
script is idempotent and exposed via `just import-wpt`. CI now prints the
WPT summary (pass=36 known_fail=2877 skip=1) on every run.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 00:15:27 -05:00

55 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>CSS Flexible Box Test: flex item margins</title>
<link rel="author" title="Ping Huang" href="mailto:phuangce@gmail.com" />
<link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#flex-containers">
<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#item-margins">
<link rel="match" href="reference/flex-margin-no-collapse-ref.html">
<meta name="assert" content="The vertical gap between two green boxs should be 100px." />
<style type="text/css">
#container {
display: flex ;
flex-direction: column;
position: absolute;
top: 100px;
left: 10px;
width: 200px;
height: 300px;
}
.box {
width: 100px;
height: 100px;
background-color: green;
flex: none;
}
#box1 {
margin: 50px 0;
}
#box2 {
margin: 50px 0;
}
#red-box {
position: absolute;
top: 350px;
left: 10px;
width: 100px;
height: 100px;
background-color: red;
}
</style>
</head>
<body>
<p>The test passes if there are two green boxes and no red.</p>
<div id="red-box"></div>
<div id="container">
<div id="box1" class="box"></div>
<div id="box2" class="box"></div>
</div>
</body>
</html>