Bug 1898201 [wpt PR 46431] - [text-box-trim] Test block-end with Ruby, a=testonly

Automatic update from web-platform-tests
[text-box-trim] Test block-end with Ruby

This patch adds a test of the `text-box-trim` property for the
block-end behavior when a Ruby hangs to the block-end side.

The test and reference for the block-start added in
crrev.com/c/5539108 are updated to share the reference file.

Bug: 40254880
Change-Id: Ie068940eff74aab2eb4baa7588b37baaef59c590
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5553008
Commit-Queue: Koji Ishii <kojii@chromium.org>
Auto-Submit: Koji Ishii <kojii@chromium.org>
Commit-Queue: Lingqi Chi <lingqi@chromium.org>
Reviewed-by: Lingqi Chi <lingqi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1304323}

--

wpt-commits: e7a9f83c6176839320eb67e4423599bf29d4492a
wpt-pr: 46431
This commit is contained in:
Koji Ishii 2024-05-23 16:22:38 +00:00 committed by moz-wptsync-bot
parent 7c0dc512bb
commit 1f62abd3e9
3 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#propdef-text-box-edge">
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#propdef-text-box-trim">
<link rel="match" href="text-box-trim-ruby-start-001-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.spacer {
height: 40px;
background: lightgray;
}
.target {
font-family: Ahem;
font-size: 40px;
line-height: 1;
ruby-position: under;
text-box-trim: end;
text-box-edge: text;
}
rt {
/* The Ruby annotation positioning is UA-dependent. In order to ref-test the
trimming of parts above the ascent, hide the Ruby annotation. */
color: transparent;
}
</style>
<div class="spacer"></div>
<div class="target">A <ruby>BASE<rt>RUBY</rt></ruby> B</div>
<div class="spacer"></div>

View file

@ -13,3 +13,4 @@
</style>
<div class="spacer"></div>
<div class="target">A BASE B</div>
<div class="spacer"></div>

View file

@ -23,3 +23,4 @@ rt {
</style>
<div class="spacer"></div>
<div class="target">A <ruby>BASE<rt>RUBY</rt></ruby> B</div>
<div class="spacer"></div>