Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="UTF-8">
<title>Tests for ruby-overhang: spaces adjacent to non-BMP characters</title>
<link rel="match" href="ruby-overhang-spaces-non-bmp-001-ref.html">
<meta name="assert" content="With 'ruby-overhang: spaces', space traversal and measurement correctly handle surrogate pairs (non-BMP characters).">
<style>
ruby {
ruby-overhang: spaces;
ruby-align: center;
}
div {
font-size: 20px;
border-left: 5px solid;
border-right: 5px solid;
width: max-content;
margin-bottom: 10px;
}
.test { border-color: orange; }
.measure { border-color: blue; }
</style>
<body lang="ja">
<p>Test passes if orange and blue lines are aligned.
<div class="test">🍊 <ruby>あ<rt>ああああああああああ</rt></ruby> 🍊</div>
<div class="measure">🍊<ruby>  あ  <rt>ああああああああああ</ruby>🍊</div>
</body>