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/writing-system/writing-system-line-break-001.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>CSS test: writing system and line breaking</title>
<link rel=match href="reference/writing-system-line-break-001-ref.html">
<meta name=assert content="breaks before U+301C when line-break is loose are allowed if the content language is Japanese,
but not when the writing system is not Japanese/Chinese (e.g. Korean).">
<style>
div {
font-family: monospace;
width: 2em;
line-break: loose;
}
[lang=ja] { border: solid blue; }
[lang=ja-Hang] { border: solid orange; }
</style>
<p>The test passes if the second line in the blue box below <em>starts with</em> a “〜”,
and if the second line in the orange box below <em>ends with</em> a “〜”.
<div lang=ja>東京〜大阪</div>
<div lang=ja-Hang>도쿄〜오사카</div>