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/word-space-transform/word-space-transform-012.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 4 Test: word-space-transform and forced line breaks (inline blocks)</title>
<link rel="match" href="reference/word-space-transform-012-ref.html">
<meta name="assert" content="must not replace instances of U+200B immediately preceding or following a forced line break (inline block boundaries)">
<style>
div {
font-size: 2em;
border: solid blue;
float: left;
margin: 1px;
}
.test {
word-space-transform: ideographic-space;
}
a { display: inline-block; }
.mbp span {
padding: 0 5px;
border: solid transparent;
border-width: 0 5px;
margin: 0 -10px;
}
</style>
<p>Test passes if the all boxes below are identical.
<div class=test>あ<a><wbr>い<wbr>う<wbr></a>え</div>
<div class=test>あ<a><span></span><span><wbr></span>い<wbr>う<span><wbr></span><span></span></a>え</div>
<div class="test mbp">あ<a><span></span><span><wbr></span>い<wbr>う<span><wbr></span><span></span></a>え</div>
<div class=test>あ<a>​い​う​</a>え</div>
<div class=test>あ<a><span></span><span>​</span>い​う<span>​</span><span></span></a>え</div>
<div class="test mbp">あ<a><span></span><span>​</span>い​う<span>​</span><span></span></a>え</div>
<div id=ref>あい うえ</div>