Bug 1774663 [wpt PR 34472] - Breaking before a float, a=testonly

Automatic update from web-platform-tests
Breaking before a float

In the added test case, the second float is processed in an earlier
fragmentainer than the first (nested) float. If the first float
ends up breaking before, we may try to break before the second
float, as well, even though it had already broken.

Instead, check if a float has broken previously before attempting to
add a break before it.

Bug: 1336847
Change-Id: Ic9231f3d93fbebae3bbf022641082c2b78829db6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3710174
Commit-Queue: Alison Maher <almaher@microsoft.com>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1015370}

--

wpt-commits: 22d425520a0de4af40b56b5a35bc18b07cd9996c
wpt-pr: 34472
This commit is contained in:
Alison Maher 2022-06-21 09:59:49 +00:00 committed by moz-wptsync-bot
parent 1ba41668c1
commit cea99366e1

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1336847">
<style>
.float {
float: left;
clear: both;
}
div {
padding-bottom: 10px;
padding-top: 10000000000px;
}
</style>
<div style="column-count:15;">
<div>
text
<div></div>
<div class="float"></div>
</div>
<div class="float"></div>
</div>