| <!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> |