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>
49 lines
1.1 KiB
HTML
49 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>CSS Text level 3 Test: tab-size based on block ancestor's space</title>
|
|
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
|
|
<link rel="help" href="https://drafts.csswg.org/css-text-3/#tab-size-property">
|
|
<link rel="match" href="tab-size-block-ancestor-ref.html">
|
|
<meta name="assert" content="tab width is based on space character in the block ancestor">
|
|
<style>
|
|
div {
|
|
font: 16px monospace;
|
|
white-space: pre;
|
|
tab-size: 10;
|
|
}
|
|
.test1 span {
|
|
font-size: 1px;
|
|
}
|
|
.test2 span {
|
|
font-size: 10px;
|
|
}
|
|
.test3 span {
|
|
tab-size: 5;
|
|
}
|
|
.test4 span {
|
|
font-size: 10px;
|
|
tab-size: 2.5;
|
|
}
|
|
b {
|
|
font: bold 16px monospace;
|
|
}
|
|
</style>
|
|
|
|
<p>Test passes if the five “A” letters below are vertically aligned with each other.
|
|
|
|
<div>
|
|
<b>A</b><!-- indented by 10 spaces -->
|
|
</div>
|
|
<div class=test1>
|
|
<span>	<b>A</b></span>
|
|
</div>
|
|
<div class=test2>
|
|
<span>	<b>A</b></span>
|
|
</div>
|
|
<div class=test3>
|
|
<span>		<b>A</b></span>
|
|
</div>
|
|
<div class=test4>
|
|
<span>				<b>A</b></span>
|
|
</div>
|