Files
rust_browser/tests/external/wpt/fixtures/wpt-css-css-text-letter-spacing-letter-spacing-end-of-line-002-test.html
Zachary D. Rowitsch 16abbd78e7 Bulk-import 2899 WPT CSS reftests and add import tooling
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>
2026-02-14 00:15:27 -05:00

32 lines
1.0 KiB
HTML

<!DOCTYPE html>
<meta charset=utf-8>
<title>CSS Text test - letter-spacing applied to preserved newline</title>
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#letter-spacing-property">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1850620">
<link rel="match" href="reference/letter-spacing-end-of-line-002-ref.html">
<meta name="assert" content="Letter-spacing on a preserved newline should not cause spurious line-wrapping.">
<style>
div {
margin: 1em;
font: 24px monospace;
white-space: pre-wrap;
display: inline-block;
outline: 1px solid gray;
}
.letterspc {
letter-spacing: 10px;
}
.nospc {
letter-spacing: 0px;
}
</style>
<p>None of these examples should wrap to a second line:</p>
<div class=letterspc><span>1. a</span><span>&#10;</span></div>
<br>
<div class=letterspc><span>2. b</span><span class=nospc>&#10;</span></div>
<br>
<div class=nospc><span>3. c</span><span class=letterspc>&#10;</span></div>