Files
sousa-gecko/testing/web-platform/tests/css/css-ruby/ruby-overhang-spaces-009-ref.html
T
Kent Tamura b54daeece1 Bug 2053809 [wpt PR 61183] - Propagate block-end annotation space from previous sibling block, a=testonly
Automatic update from web-platform-tests
Propagate block-end annotation space from previous sibling block

When laying out a block container, if it has no block-end border and not
a new formatting context, propagate its last line's block-end annotation
space to its layout result.

During layout of subsequent sibling blocks, this space is retrieved from
the constraint space and added to the initial block-start annotation
space to allow ruby annotations to overlap.

This CL extends ConstraintSpace to carry the previous sibling's
block-end annotation space, and propagates them in BlockLayoutAlgorithm.
This CL also moves block_start_annotation_space from RareData to
BlockData.

WPT:
Update some tests to avoid shorter block-gap, by adding
`overflow: hidden`, which creates a new formatting context.

DesignDoc: https://docs.google.com/document/d/1h1jTJLXHcdMdFUIgMRxkFEJQ3wQ86Ru38sMA9r51pEw/edit?usp=sharing

Bug: 445727139
Change-Id: I52dd0c401883668225ceadf310146261e6c6267d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8000812
Commit-Queue: Kent Tamura <tkent@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Auto-Submit: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1659340}

--

wpt-commits: e62266ca7e915a23ab921231f878d6ef9d5e5453
wpt-pr: 61183
2026-07-12 11:58:38 +00:00

25 lines
650 B
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;
border-left: 5px solid;
border-right: 5px solid;
width: max-content;
overflow: hidden;
}
.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>  あ  <rt>ああああああああああ</ruby>あ</div>
<div class=test>あ<ruby>  あ  <rt>ああああああああああ</ruby>あ</div>
<div class=measure>あ  あ  あ</div>
</body>