Files
sousa-gecko/testing/web-platform/tests/css/css-ruby/ruby-overhang-spaces-011-ref.html
T
Minseong Kim 71520b851e Bug 2040283 [wpt PR 59938] - [ruby-overhang] Fix ruby-overhang-spaces-011-ref.html WPT, a=testonly
Automatic update from web-platform-tests
[ruby-overhang] Fix ruby-overhang-spaces-011-ref.html WPT

Previously, the reference file had crash in debug build, and there was a
failure in release build. Because The width of the tab character didn't
consider the previous inline text 'a'. To resolve this, this CL fixes
the reference file by moving 'a' into the ruby base.

Bug: 512045630, 499042741, 366873207
Change-Id: I0b93fe44d4e7568b81120fb6e12f786b8c1e6a69
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7839338
Commit-Queue: Koji Ishii <kojii@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1631988}

--

wpt-commits: bf64191036a79f5cedba68db6aca737bb0dcec49
wpt-pr: 59938
2026-05-21 07:38:52 +00:00

30 lines
1.1 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<meta charset="UTF-8">
<title>test reference</title>
<style>
ruby {
ruby-overhang: spaces;
ruby-align: center;
}
div {
font-size: 20px;
white-space: pre;
border-left: 5px solid;
border-right: 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.
<div class=test><ruby>a&Tab;   あ    <rt>ああああああああああ</ruby>a</div>
<div class=test><ruby>a&Tab;   あ    <rt>ああああああああああ</ruby>a</div>
<div class=test><ruby>a&Tab;   あ    <rt>ああああああああああ</ruby>a</div>
<div class=test><ruby>a&Tab;   あ    <rt>ああああああああああ</ruby>a</div>
<div class=test><ruby>a&Tab;   あ    <rt>ああああああああああ</ruby>a</div>
<div class=test><ruby>a&Tab;   あ    <rt>ああああああああああ</ruby>a</div>
<div class=measure>a&Tab;   あ    a</div>
</body>