Status: FAIL | Duration: 15ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-ruby/ruby-overhang-spaces-non-bmp-002.html
<!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>
/css/css-ruby/ruby-overhang-spaces-non-bmp-002-ref.html
<!DOCTYPE html> <meta charset="UTF-8"> <title>CSS Reference: ruby-overhang spaces with non-BMP characters</title> <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; text-spacing-trim: space-all; } .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">🍊) あ (🍊</div> </body>