forked from mirrors/gecko-dev
Automatic update from web-platform-tests ruby-align: Implement the layout behavior ... and make the status "experimental". The main logic is ApplyRubyAlign() in ruby_utils.cc. We already have alignment logic. So this CL just adjusts it for ruby-align values. * LineBreaker::AddRubyColumnResult() should set LineStyle to pass <ruby>'s style. * GetOverhang() should return an empty AnnotationOverhang instance for ruby-align:space-between and an end-only instance for ruby-align:start. * Move out space-around tests from css-ruby/ruby-align-00*.html because Firefox and Chrome have different justification opportunity counts for "X X X". Bug: 40249572 Change-Id: I78af66e853356301135dc03bd1ab82c1a0e6ca31 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5595788 Reviewed-by: Koji Ishii <kojii@chromium.org> Auto-Submit: Kent Tamura <tkent@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/main@{#1309784} -- wpt-commits: 55b8d9e9a6ab75a494bcb9b4e5a2fba75060edc2 wpt-pr: 46613
31 lines
1.2 KiB
HTML
31 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<meta charset="UTF-8">
|
|
<title>Tests for ruby-align</title>
|
|
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
|
|
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
|
<link rel="stylesheet" href="/fonts/ahem.css">
|
|
<link rel="stylesheet" href="support/ruby-common.css">
|
|
<style>
|
|
div { width: 160px; box-sizing: border-box; }
|
|
|
|
.annotation-test ruby { line-height: 0; }
|
|
.annotation-test rt { font-size: 100%; }
|
|
.annotation-test rb { font-size: 0; }
|
|
.annotation-test rt > div { width: 160px; box-sizing: border-box; }
|
|
</style>
|
|
<body style="font: 16px/3 Ahem">
|
|
<!-- 8px = (width: 160px - 5 * font-size: 16px) /
|
|
(1 + justification opportunities: 4) / 2 -->
|
|
<div style="text-align-last: justify; padding: 0 8px">X X X</div>
|
|
<div style="text-align-last: justify; padding: 0 8px">X X X</div>
|
|
|
|
<div class="annotation-test">
|
|
<!-- 8px = (width: 160px - 5 * font-size: 16px) /
|
|
(1 + justification opportunities: 4) / 2 -->
|
|
<ruby>
|
|
<rb></rb><rt><div style="text-align-last: justify; padding: 0 8px">X X X</div></rt>
|
|
</ruby><br>
|
|
<ruby>
|
|
<rb></rb><rt><div style="text-align-last: justify; padding: 0 8px">X X X</div></rt>
|
|
</ruby>
|
|
</div>
|