Files
rust_browser/tests/external/wpt/fixtures/wpt-css-css-flexbox-multiline-shrink-to-fit-ref.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

86 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html>
<style>
.testcase {
float: left;
background-color: #aaa;
}
.testcase > :nth-child(1) {
background-color: lightblue;
}
.testcase > :nth-child(2) {
background-color: lightgreen;
}
.testcase > :nth-child(3) {
background-color: pink;
}
.testcase > :nth-child(4) {
background-color: yellow;
}
table {
border-spacing: 0;
border-collapse: collapse;
}
td {
padding: 0;
width: 100px;
}
</style>
<body>
<div class="testcase" style="height: 60px; width: 100px">
<div style="width: 100px; height: 20px"></div>
<div style="width: 100px; height: 10px"></div>
<div style="width: 100px; height: 10px"></div>
<div style="width: 100px; height: 20px"></div>
</div>
<p style="clear:left">The grey background should be 100px wide.</p>
<div class="testcase" style="height: 30px; width: 100px">
<table>
<td>
<div style="width: 100px; height: 20px"></div>
<div style="width: 100px; height: 10px; background-color: lightgreen"></div>
</td>
<td>
<div style="width: 100px; height: 10px; background-color: pink"></div>
<div style="width: 100px; height: 20px; background-color: yellow"></div>
</td>
</table>
</div>
<p style="clear:left">The grey background should be 100px wide.</p>
<div style="width: 150px">
<div class="testcase" style="height: 60px; width: 100px">
<div style="width: 100px; height: 20px"></div>
<div style="width: 100px; height: 10px"></div>
<div style="width: 100px; height: 10px"></div>
<div style="width: 100px; height: 20px"></div>
</div>
</div>
<p style="clear:left">The grey background should be 100px wide.</p>
<div style="width: 150px">
<div class="testcase" style="height: 35px; width: 150px;">
<table>
<td>
<div style="width: 100px; height: 20px"></div>
<div style="width: 100px; height: 10px; background-color: lightgreen"></div>
</td>
<td>
<div style="width: 100px; height: 10px; background-color: pink"></div>
<div style="width: 100px; height: 20px; background-color: yellow"></div>
</td>
</table>
</div>
</div>
<p style="clear:left">The grey background should be 150px wide and 5px should
stick out the bottom.</p>
</body>
</html>