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>
31 lines
1.1 KiB
HTML
31 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>CSS Text Test: max-content sizing and white-space: pre-wrap</title>
|
|
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
|
|
<link rel="help" href="https://drafts.csswg.org/css-text-3/#propdef-white-space">
|
|
<link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
|
|
<link rel="match" href="reference/white-space-intrinsic-size-004-ref.html">
|
|
<meta name="assert" content="Preserved spaces at the end of the line do affect the intrinsic max-content size when white-space is pre-wrap, as spaces before a forced break, at the end of un unwrapped line, only hanging conditionally, which does not prevent contributing to the max-content size. The value of overflow-wrap makes no difference.">
|
|
<style>
|
|
aside {
|
|
float: left;
|
|
white-space: pre-wrap;
|
|
background: green;
|
|
}
|
|
aside:last-of-type { overflow-wrap: break-word; }
|
|
div {
|
|
background: red;
|
|
color: transparent;
|
|
font-family: monospace;
|
|
font-size: 50px;
|
|
width: 3ch;
|
|
line-height: 1;
|
|
}
|
|
</style>
|
|
|
|
<p>Test passes if there is a single green rectangle below and no red.
|
|
<div>
|
|
<aside>X </aside>
|
|
<aside>X </aside>
|
|
</div>
|