fune/testing/web-platform/tests/css/css-ruby/ruby-align-001a.html
Kent Tamura bdc8822d40 Bug 1900536 [wpt PR 46613] - ruby-align: Implement the layout behavior, a=testonly
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
2024-06-07 07:38:57 +00:00

23 lines
789 B
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="help" href="https://drafts.csswg.org/css-ruby-1/#ruby-align-property">
<link rel="match" href="ruby-align-001-ref.html">
<link rel="stylesheet" href="/fonts/ahem.css">
<link rel="stylesheet" href="support/ruby-common.css">
<style>
ruby { line-height: 0; }
rt > div { width: 160px; }
</style>
<body style="font: 16px/3 Ahem">
<ruby>
<rb style="ruby-align: start">X X X<rt><div></div></rt>
</ruby><br>
<ruby>
<rb style="ruby-align: center">X X X<rt><div></div></rt>
</ruby><br>
<ruby>
<rb style="ruby-align: space-between">X X X<rt><div></div></rt>
</ruby>