-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathruby-overhang-spaces-002.html
More file actions
36 lines (36 loc) · 1.87 KB
/
ruby-overhang-spaces-002.html
File metadata and controls
36 lines (36 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!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-002-ref.html">
<meta name=assert content="With 'ruby-overhang: spaces', excess ruby overhangs on top of the blank part of opening/closing fullwidth punctuation, but no further.">
<style>
ruby {
ruby-overhang: spaces;
ruby-align: center;
}
div {
border-left: 5px solid;
border-right: 5px solid;
width: max-content;
}
.test { border-color: orange; }
.measure { border-color: blue; }
</style>
<p>Test passes if orange and blue lines are aligned.
<div class=test>あ)<ruby>あ<rt>ああああああああ</ruby>(あ</div>
<div class=test>あ」<ruby>あ<rt>ああああああああ</ruby>「あ</div>
<div class=test>あ』<ruby>あ<rt>ああああああああ</ruby>『あ</div>
<div class=test>あ】<ruby>あ<rt>ああああああああ</ruby>【あ</div>
<div class=test>あ〗<ruby>あ<rt>ああああああああ</ruby>〖あ</div>
<div class=test>あ〕<ruby>あ<rt>ああああああああ</ruby>〔あ</div>
<div class=test>あ〉<ruby>あ<rt>ああああああああ</ruby>〈あ</div>
<div class=test>あ》<ruby>あ<rt>ああああああああ</ruby>《あ</div>
<div class=test>あ〙<ruby>あ<rt>ああああああああ</ruby>〘あ</div>
<div class=test>あ〛<ruby>あ<rt>ああああああああ</ruby>〚あ</div>
<div class=test>あ〞<ruby>あ<rt>ああああああああ</ruby>〝あ</div>
<div class=test>あ〟<ruby>あ<rt>ああああああああ</ruby>〝あ</div>
<div class=test>あ]<ruby>あ<rt>ああああああああ</ruby>[あ</div>
<div class=test>あ}<ruby>あ<rt>ああああああああ</ruby>{あ</div>
<div class=test>あ⦆<ruby>あ<rt>ああああああああ</ruby>⦅あ</div>
<div class=measure>あ) あ (あ</div>