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
25 lines
650 B
HTML
25 lines
650 B
HTML
<!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>
|