Files
sousa-gecko/testing/web-platform/tests/css/css-multicol/crashtests/float-beside-whitespace-ruby.html
T
Morten Stenshorne c05103d326 Bug 2038534 [wpt PR 59779] - Ruby: Only handle overflow if there's content., a=testonly
Automatic update from web-platform-tests
Ruby: Only handle overflow if there's content.

If there was a float after a RUBY element with just whitespace inside,
the float would be seen as a leading float in PositionLeadingFloats(),
which seems correct. At the same time, however, if `text-indent` was
larger than the container inline-size, such a RUBY would trigger a line
break before the float (which was seen as leading), causing some
confusion.

The crash in `PhysicalContractedBoxRect()` / `FragmentForEdge()` is from
new code, but the assumptions that the new code makes there should be
valid. Fix the underlying issue instead, which is also a ruby
correctness issue. Include one test for that, and one test for the
multicol crash.

Bug: 510947981
Change-Id: I73d393836af993c526e5e3e313ff08208ea0ad6a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7829619
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1628376}

--

wpt-commits: 21a95f25d86167d70619a45bd06b333576f92dc9
wpt-pr: 59779
2026-05-13 04:23:03 +00:00

12 lines
433 B
HTML

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://issues.chromium.org/issues/510947981">
<div style="columns:12; column-fill:auto; height:2px;">
<div style="columns:1; text-indent:1000px;">
<ruby> </ruby>
<div style="float:left; border-bottom:solid;">
<div style="columns:10; height:10px; contain:size;"></div>
</div>
</div>
</div>