blob: 5727de71681cce7d53fb0b139ca72bbbc3ec8e98 [file] [edit]
<!DOCTYPE html>
<meta charset="UTF-8">
<title>Tests for ruby-overhang: spaces with other space separators</title>
<link rel="help" href="https://drafts.csswg.org/css-ruby-1/#ruby-overhang">
<link rel="match" href="ruby-overhang-spaces-015-ref.html">
<meta name=assert content="With 'ruby-overhang: spaces', excess ruby overhangs on top of the other space separators, but no further.">
<style>
ruby {
ruby-overhang: spaces;
ruby-align: center;
}
div {
font-size: 20px;
border-left: 5px solid;
border-right: 5px solid;
width: max-content;
}
.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>あ&#x1680;<ruby><rt>ああああああ</ruby>&#x1680;あ</div>
<div class=test>あ&#x2000;<ruby><rt>ああああああ</ruby>&#x2000;あ</div>
<div class=test>あ&#x2001;<ruby><rt>ああああああ</ruby>&#x2001;あ</div>
<div class=test>あ&#x2002;<ruby><rt>ああああああ</ruby>&#x2002;あ</div>
<div class=test>あ&#x2003;<ruby><rt>ああああああ</ruby>&#x2003;あ</div>
<div class=test>あ&#x2004;<ruby><rt>ああああああ</ruby>&#x2004;あ</div>
<div class=test>あ&#x2005;<ruby><rt>ああああああ</ruby>&#x2005;あ</div>
<div class=test>あ&#x2006;<ruby><rt>ああああああ</ruby>&#x2006;あ</div>
<div class=test>あ&#x2007;<ruby><rt>ああああああ</ruby>&#x2007;あ</div>
<div class=test>あ&#x2008;<ruby><rt>ああああああ</ruby>&#x2008;あ</div>
<div class=test>あ&#x2009;<ruby><rt>ああああああ</ruby>&#x2009;あ</div>
<div class=test>あ&#x200A;<ruby><rt>ああああああ</ruby>&#x200A;あ</div>
<div class=test>あ&#x202F;<ruby><rt>ああああああ</ruby>&#x202F;あ</div>
<div class=test>あ&#x205F;<ruby><rt>ああああああ</ruby>&#x205F;あ</div>
<div class=test>あ&#x3000;<ruby><rt>ああああああ</ruby>&#x3000;あ</div>
<div class=measure>あ あ あ</div>
</body>