Files
firefox/testing/web-platform/tests/css/css-ruby/collapse-trailing-whitespace.html
Kent Tamura c3fba2f49c Bug 1930563 [wpt PR 49116] - Reland "layout: Fix trailing collapsible space handling with <ruby>", a=testonly
Automatic update from web-platform-tests
Reland "layout: Fix trailing collapsible space handling with <ruby>"

This is a reland of commit 1ff996297a57783a387e0031bc40d3343db3cfcb

Changes from the original CL:
TrailingCollapsibleSpace should store pairs of a Vector and an index
instead of InlineItemResult pointers.
We append InlineItemResult instances to an InlineItemResults vector
after calling ComputeTrailingCollapsibleSpace(), which makes a
TrailingCollapsibleSpace.  So an InlineItemResult address can be
changed.

Original change's description:
> layout: Fix trailing collapsible space handling with <ruby>
>
> * Trailing collapsible space should not be handled in ruby-base lines
>   because such lines are contained by another line.
>   This CL introduces `LineBreaker::
>   disable_trailing_whitespace_collapsing_`.
>
> * ComputeTrailingCollapsibleSpace() should iterate inside ruby columns
>   recursively.
>
> * RemoveTrailingCollapsibleSpace() and TrailingCollapsibleSpaceWidth()
>   should compute ruby column widths correctly.
>
> * ruby-intra-level-whitespace-001.html passed accidentally. It requires
>   <rb> and table-like pairing.
>
> Bug: 376097115
> Change-Id: I55e4559012ec08c9b423ad8a518890c02862d857
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5996911
> Commit-Queue: Koji Ishii <[email protected]>
> Auto-Submit: Kent Tamura <[email protected]>
> Reviewed-by: Koji Ishii <[email protected]>
> Cr-Commit-Position: refs/heads/main@{#1379515}

Bug: 376097115, 377943756, 378102636,
Change-Id: Ida30674a41c8f4d03e5b388c469345e7f36acdbc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6010169
Reviewed-by: Koji Ishii <[email protected]>
Commit-Queue: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1381580}

--

wpt-commits: 7d99467b7d97885351bf12c934582447a8893df6
wpt-pr: 49116
2024-11-13 09:24:34 +00:00

21 lines
665 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
<link rel="help" href="https://crbug.com/376097115">
<link rel="stylesheet" href="/fonts/ahem.css">
<link rel="match" href="collapse-trailing-whitespace-ref.html"/>
<meta name="assert" content="A space after '|' should be preserved,
a space after 'n' should be collapsed,
and a space after 'go' should be preserved.">
<style>
p {
font: 20px/1 Ahem;
xtext-align: justify;
xtext-align-last: justify;
width: 12em;
}
ruby { color: blue; }
rt { color: orange; }
</style>
<p>nihongo | <ruby>n <rt>n</ruby><ruby>hon<rt>hon</ruby><ruby>go <rt>go</ruby>|</p>