Automatic update from web-platform-tests [ruby-overhang] Support overhang for full-width open/close/middle dot This CL implements support for ruby overhang of full-wdth opening, closing, and middle dot punctuation. Previously, `ruby-overhang: spaces` only considered adjacent spaces. The implementation introduces logic to determine if Han kerning can be used for ruby overhang. It calculates the available overhang amount based on the character type, typically the half for opening/closing puncuation and quarter for middle dots. And this also supports font features like 'halt' and 'vhal'. The `subset.sh` script is updated to expand the character range for WPT. - FE00-FE0F: For variation selectors. - FF3B, FF3D: Full-width left and right square brackets. Spec: https://drafts.csswg.org/css-ruby-1/#ruby-overhang Bug: 499042741, 366873207 Change-Id: I38c8a8f03b3f5eacfea36e305b1fd56758fe8a3a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7809475 Commit-Queue: Minseong Kim <jja08111@gmail.com> Reviewed-by: Kent Tamura <tkent@chromium.org> Reviewed-by: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/main@{#1635620} -- wpt-commits: 6e5acd8216cd063ec1ffd9b0fc8ea08ca3ab63a2 wpt-pr: 60135
46 lines
2.0 KiB
HTML
46 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
||
<meta charset="UTF-8">
|
||
<title>test reference</title>
|
||
<style>
|
||
@font-face {
|
||
font-family: halt-font;
|
||
src: url('/fonts/noto/cjk/NotoSansCJKjp-Regular-subset-halt.otf');
|
||
}
|
||
ruby {
|
||
ruby-overhang: spaces;
|
||
ruby-align: center;
|
||
}
|
||
span {
|
||
/* Use the halt font to match with a reference in Mac and Windows. */
|
||
font-family: halt-font;
|
||
writing-mode: vertical-lr;
|
||
font-size: 20px;
|
||
border-top: 5px solid;
|
||
border-bottom: 5px solid;
|
||
width: max-content;
|
||
text-spacing-trim: space-all;
|
||
}
|
||
.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>あ<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>
|