Files
sousa-gecko/testing/web-platform/tests/css/css-break/flexbox/multi-line-column-flex-fragmentation-059-ref.html
T
Javier Contreras 6154a1932c Bug 2021659 [wpt PR 58336] - [gap-decorations] Suppress full effective gaps for flex containers, a=testonly
Automatic update from web-platform-tests
[gap-decorations] Suppress full effective gaps for flex containers

This CL makes sure we suppress row and column gaps as per
https://github.com/w3c/csswg-drafts/issues/11520#issuecomment-2628423830.

This was already implemented for any gaps created by the `gap`
properties, in CL:6666279 and CL:6657779, but after
https://github.com/w3c/csswg-drafts/issues/12922#issuecomment-3814532173
it had to be extended to apply for the full effective gaps.

This involves any space between items/lines created by `align-content`
and `justify-content`.

We move `effective_gap_between_lines` to be passed around so that we are
able to use it in the fragmentation path for when we need it to be
suppressed.

We add the relevant tests for this, and adjust one test to account for
this new behavior as well.

Bug: 357648037, 394042462
Change-Id: I1aa9769dee6b9799bda6bf3a4a2374ab809e65cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7615749
Commit-Queue: Javier Contreras <javiercon@microsoft.com>
Reviewed-by: Sam Davis Omekara <samomekarajr@microsoft.com>
Reviewed-by: Alison Maher <almaher@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1595674}

--

wpt-commits: 6d44f5fe73b31d0e3a8058d9d82852a759bfa62e
wpt-pr: 58336
2026-03-12 15:58:14 +00:00

56 lines
1.3 KiB
HTML

<!DOCTYPE html>
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/11520">
<link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
<style>
.multi-column {
columns: 2;
height: 60px;
column-width: 60px;
width: 130px;
gap: 10px;
}
body {
margin: 0px;
}
#flexbox {
border: 2px solid rgb(96 139 168);
width: 60px;
background-color: #fff;
display: flex;
flex-direction: column;
flex-wrap: wrap;
height: 110px;
justify-content: space-between;
}
.item {
width: 60px;
height: 25px;
background-color: red;
color: white;
opacity: 0;
}
.mock-item {
width: 60px;
height: 25px;
background-color: #007bff;
position: absolute;
}
</style>
<div class="multi-column">
<div class="mock-item" style="top: 2px; left: 2px;"></div>
<div class="mock-item" style="top: 0px; left: 72px;"></div>
<div class="mock-item" style="top: 30px; left: 2px;"></div>
<div class="mock-item" style="top: 28px; left: 72px;"></div>
<div id="flexbox">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
</div>