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
23 lines
789 B
HTML
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 style="ruby-align: start">
|
|
<rb>X X X<rt><div></div></rt>
|
|
</ruby><br>
|
|
<ruby style="ruby-align: center">
|
|
<rb>X X X<rt><div></div></rt>
|
|
</ruby><br>
|
|
<ruby style="ruby-align: space-between">
|
|
<rb>X X X<rt><div></div></rt>
|
|
</ruby>
|