Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-text/white-space/trailing-ideographic-space-026.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 3 Test: ideographic space 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="An ideographic space (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>ああ <br>ああ</div>
<!-- Like trailing-ideographic-space-001, but without any inline box,
as engines can lay out text-only content differently.
The ideographic space hangs, so the div is only two characters wide.
-->