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>
34 lines
1.2 KiB
HTML
34 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>CSS Text level 3 Test: break-all and punctuation</title>
|
|
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
|
|
<link rel="help" href="https://drafts.csswg.org/css-text-3/#word-break-property">
|
|
<link rel="match" href="reference/word-break-break-all-020-ref.html">
|
|
<meta name="assert" content="work-break:break-all does not affect rules governing the soft wrap opportunities created by punctuation.">
|
|
<style>
|
|
div {
|
|
border: 5px solid;
|
|
width: 2em;
|
|
}
|
|
|
|
div:nth-of-type(1) { border-color: blue; }
|
|
div:nth-of-type(2) { border-color: green; }
|
|
div:nth-of-type(3) { border-color: orange; }
|
|
|
|
div:nth-of-type(3) { word-break: break-all; }
|
|
</style>
|
|
|
|
<p>Test passes if the text in each of the following 3 boxes is broken into separate lines at the same points.
|
|
<div lang=ja>あい)あ(い</div>
|
|
<div lang=ja>あ<br>い)<br>あ<br>(い</div>
|
|
<div lang=ja>あい)あ(い</div>
|
|
|
|
<!--
|
|
If the first box (blue) is wrong,
|
|
customary rules for line breaking japanese are not implemented (or not correctly).
|
|
|
|
If the third box (orange) is wrong,
|
|
customary rules for line breaking japanese are discarded
|
|
when applying 'word-break: break-all', which is a spec violation.
|
|
-->
|