wpt / css / css-ruby / ruby-overhang-spaces-018.html

Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-ruby/ruby-overhang-spaces-018.html

<!DOCTYPE html>
<meta charset="UTF-8">
<title>Tests for ruby-overhang: spaces with middle dot</title>
<link rel="help" href="https://drafts.csswg.org/css-ruby-1/#ruby-overhang">
<link rel="match" href="ruby-overhang-spaces-018-ref.html">
<meta name=assert content="With 'ruby-overhang: spaces', excess ruby overhangs on top of the ideographic spaces and the blank part of Katakana middle dot, but no further.">
<style>
@font-face {
    font-family: halt-font;
    src: url('/fonts/noto/cjk/NotoSansCJKjp-Regular-subset-halt.otf');
}
ruby {
    ruby-overhang: spaces;
    ruby-align: center;
}
div {
    /* Use the halt font to match with a reference in Mac. */
    font-family: halt-font;
    font-size: 20px;
    border-left: 5px solid;
    border-right: 5px solid;
    width: max-content;
    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>あああああああああああ</ruby> ・あ</div>
<div class=measure>あ・  あ  ・あ</div>
</body>

/css/css-ruby/ruby-overhang-spaces-018-ref.html

<!DOCTYPE html>
<meta charset="UTF-8">
<title>test reference</title>
<style>
@font-face {
    font-family: halt-font;
    src: url('/fonts/noto/cjk/NotoSansCJKjp-Regular-subset-halt.otf');
}
ruby {
    ruby-overhang: spaces;
    ruby-align: center;
}
div {
    /* Use the halt font to match with a reference in Mac. */
    font-family: halt-font;
    font-size: 20px;
    border-left: 5px solid;
    border-right: 5px solid;
    width: max-content;
    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>あああああああああああ</ruby>あ</div>
<div class=measure>あ・  あ  ・あ</div>
</body>