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>
50 lines
1.5 KiB
HTML
50 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<title>CSS Inline Layout Model: Phantom Line Boxes</title>
|
|
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
|
|
<link rel="help" href="https://drafts.csswg.org/css-inline/#invisible-line-boxes">
|
|
<link rel="help" href="https://drafts.csswg.org/css2/#collapsing-margins">
|
|
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/9344">
|
|
<link rel="match" href="../../reference/ref-filled-green-200px-square.html">
|
|
<meta name="assert" content="Non-zero inline-axis margins, padding, or borders
|
|
prevent a line box from becoming a phantom line box, and therefore prevent
|
|
the inline formatting context from collapsing margins through.
|
|
This test checks non-zero borders.">
|
|
|
|
<style>
|
|
.wrapper {
|
|
float: left;
|
|
width: 50px;
|
|
background: red;
|
|
}
|
|
.wrapper.phantom {
|
|
background: green;
|
|
}
|
|
.wrapper > div {
|
|
line-height: 0;
|
|
background: green;
|
|
}
|
|
.wrapper.phantom > div {
|
|
background: red
|
|
}
|
|
.wrapper > div::after {
|
|
content: "";
|
|
display: flow-root;
|
|
margin-top: 200px;
|
|
}
|
|
</style>
|
|
|
|
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
|
|
|
<div class="wrapper phantom">
|
|
<div><span style="border-top: 1px solid transparent"></span></div>
|
|
</div>
|
|
<div class="wrapper phantom">
|
|
<div><span style="border-bottom: 1px solid transparent"></span></div>
|
|
</div>
|
|
<div class="wrapper">
|
|
<div><span style="border-left: 1px solid transparent"></span></div>
|
|
</div>
|
|
<div class="wrapper">
|
|
<div><span style="border-right: 1px solid transparent"></span></div>
|
|
</div>
|