mirror of
https://github.com/servo/servo.git
synced 2025-07-12 01:43:43 +01:00
20 lines
912 B
HTML
20 lines
912 B
HTML
<!doctype html>
|
|
<meta charset=utf-8>
|
|
<title>CSS Text test: intrinsic maximum sizing of trailing spaces with 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/#white-space-phase-2">
|
|
<link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-002-ref.html">
|
|
<meta name="assert" content="Preserved white space at the end of the line is hanged when white-space is pre-wrap, and therefore does not count when computing the (maximum) intrinsic size.">
|
|
|
|
<style>
|
|
span {
|
|
display: inline-block;
|
|
white-space: pre-wrap;
|
|
}
|
|
#s1 { text-align: right; }
|
|
#s2 { text-align: center; }
|
|
</style>
|
|
|
|
<p>This test passes if you can see the word PASS below, without any extra spaces.
|
|
|
|
<div><span id=s1>P </span><span id=s2>A </span>SS</div>
|