blob: 5b5f789b708c4146a045eb82afc8115e1c69647b [file] [edit]
<!DOCTYPE html>
<meta charset="UTF-8">
<title>Tests for ruby-overhang: spaces with parentheses</title>
<link rel="help" href="https://drafts.csswg.org/css-ruby-1/#ruby-overhang">
<link rel="match" href="ruby-overhang-spaces-vertical-004-ref.html">
<meta name=assert content="With 'ruby-overhang: spaces', excess ruby overhangs on top of the blank part of opening/closing fullwidth punctuation in vertical writing mode.">
<style>
ruby {
ruby-overhang: spaces;
ruby-align: center;
}
span {
writing-mode: vertical-lr;
font-size: 20px;
border-top: 5px solid;
border-bottom: 5px solid;
width: max-content;
}
.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.
</br>
<span class=test>あ)<ruby><rt>ああああああああ</ruby>(あ</span>
<span class=test>あ」<ruby><rt>ああああああああ</ruby>「あ</span>
<span class=test>あ』<ruby><rt>ああああああああ</ruby>『あ</span>
<span class=test>あ】<ruby><rt>ああああああああ</ruby>【あ</span>
<span class=test>あ〗<ruby><rt>ああああああああ</ruby>〖あ</span>
<span class=test>あ〕<ruby><rt>ああああああああ</ruby>〔あ</span>
<span class=test>あ〉<ruby><rt>ああああああああ</ruby>〈あ</span>
<span class=test>あ》<ruby><rt>ああああああああ</ruby>《あ</span>
<span class=test>あ〙<ruby><rt>ああああああああ</ruby>〘あ</span>
<span class=test>あ〛<ruby><rt>ああああああああ</ruby>〚あ</span>
<span class=test>あ〞<ruby><rt>ああああああああ</ruby>〝あ</span>
<span class=test>あ〟<ruby><rt>ああああああああ</ruby>〝あ</span>
<span class=test>あ]<ruby><rt>ああああああああ</ruby>[あ</span>
<span class=test>あ}<ruby><rt>ああああああああ</ruby>{あ</span>
<span class=test>あ⦆<ruby><rt>ああああああああ</ruby>⦅あ</span>
<span class=measure>あ) あ (あ</span>
</body>