blob: f6598a36c6cb42047fc7a6b4af0c5a90c02155a2 [file] [edit]
<!DOCTYPE html>
<meta charset="UTF-8">
<title>Tests for ruby-overhang: spaces adjacent to non-BMP characters</title>
<link rel="help" href="https://drafts.csswg.org/css-ruby-1/#ruby-overhang">
<link rel="match" href="ruby-overhang-spaces-non-bmp-002-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; text-spacing-trim: space-all; }
</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">🍊) あ (🍊</div>
</body>