blob: 4a08a61a7d61d29f0b2fb8733c0503323dc40c85 [file] [edit]
<!DOCTYPE html>
<meta charset="UTF-8">
<title>Tests for ruby-overhang: spaces with preserved tabs in vertical writing modes</title>
<link rel="help" href="https://drafts.csswg.org/css-ruby-1/#ruby-overhang">
<link rel="match" href="ruby-overhang-spaces-vertical-002-ref.html">
<meta name=assert content="With 'ruby-overhang: spaces', excess ruby overhangs on top of preserved tabs in vertical writing modes.">
<style>
ruby {
ruby-overhang: spaces;
ruby-align: center;
}
span {
writing-mode: vertical-lr;
font-size: 20px;
white-space: pre;
border-top: 5px solid;
border-bottom: 5px solid;
width: max-content;
tab-size: 1ic;
}
.test { border-color: orange; }
.measure { border-color: blue; }
</style>
<body lang="ja">
<p>Test passes if orange and blue lines are aligned.
</br>
<span class=test>あ&Tab;<ruby><rt>ああああああああああ</ruby>&Tab;あ</span><span class=measure>あ  あ  あ</span>
</body>