| <!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 { |
| font-size: 20px; |
| border-left: 5px solid; |
| border-right: 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. |
| <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> |
| </body> |