Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 3 Test: sequence of spaces and ideographic spaces at the end of line must hang in text-only content</title>
<link rel="author" title="Christian Biesinger" href="mailto:cbiesinger@igalia.com">
<link rel="match" href="reference/trailing-ideographic-space-026-ref.html">
<meta name="assert" content="A sequence of spaces and ideographic spaces (U+3000) at the end of the line must hang, and therefore not count toward the max-content width, also when the block contains nothing but text and line breaks.">
<style>
div {
width: max-content;
line-height: 1;
color: transparent;
background: green;
}
</style>
<p>Test passes if the green rectangle below is as wide as two ideographic characters (ああ).
<div>ああ&#x3000;&#x3000; &#x3000; &#x3000;<br>ああ</div>
<!-- Like trailing-ideographic-space-002, but without any inline box,
as engines can lay out text-only content differently.
The trailing sequence hangs, so the div is only two characters wide.
-->