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>
38 lines
931 B
HTML
38 lines
931 B
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>CSS Text level 3 Test: pre-wrap spaces and centering</title>
|
|
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
|
|
<link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
|
|
<link rel="match" href="reference/pre-wrap-018-ref.html">
|
|
<meta name="assert" content="conditionally hanging white space at the end of lines with forced breaks provides symmetry with the start of the line">
|
|
<style>
|
|
div {
|
|
font-size: 2rem;
|
|
margin: 1rem;
|
|
}
|
|
#test {
|
|
white-space: pre-wrap;
|
|
width: 5ch;
|
|
border: solid 1px;
|
|
font-family: monospace;
|
|
text-align: center;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
#ref {
|
|
white-space: pre;
|
|
width: 5ch;
|
|
border: solid 1px;
|
|
font-family: monospace;
|
|
}
|
|
#ref span {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
</style>
|
|
|
|
<p>Test passes if the two boxes below are identical.
|
|
|
|
<div id=test> 0 </div>
|
|
<div id=ref> <span> 0 </span></div>
|