fune/testing/web-platform/tests/css/css-multicol/overflow-scroll-in-multicol-crash.html
Alison Maher 8ce34e6d24 Bug 1726477 [wpt PR 30081] - [LayoutNG] Unsplittable scrolling overflow in LayoutNG, a=testonly
Automatic update from web-platform-tests
[LayoutNG] Unsplittable scrolling overflow in LayoutNG

According to the spec "UAs may consider as monolithic any elements
with overflow set to auto or scroll and any elements with overflow:
hidden and a non-auto logical height (and no specified maximum
logical height)." https://www.w3.org/TR/css-break-3/#possible-breaks

We previously did not treat any element with 'overflow: hidden' as
monolithic. We also would allow elements with an overflow of auto
or scroll to break if the block had auto logical height, auto or
undefined max-logical-height and a zero or auto min-logical-height.

This CL updates this logic to treat any element with overflow auto,
scroll, or hidden as monolithic (unless we're printing). And this
logic is updated specifically for LayoutNG. In legacy layout, this
would not have worked because even if an element is treated as
monolithic, it can still get chopped off if it did not fit within
the fragmentainer.

The new behavior is compatible with Firefox. The existing non-WPT
tests that are no longer relevant as a result of the updated
behavior have been deleted:
fast/multicol/composited-relpos-clipped.html
fast/multicol/composited-relpos-in-clipped.html
fast/multicol/overflow-across-columns.html

One WPT test was updated to use 'overflow: clip' instead of
'overflow: hidden' to maintain the test's current behavior:
external/wpt/css/css-multicol/multicol-width-small-001.xht

Three WPT tests were added to test the new functionality, and two
new crashing WPT tests were added that are fixed by this CL.

Bug: 1240384, 829028
Change-Id: I64b891662a2004c8da2cc20d6a0169d1a58b64c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3103651
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Alison Maher <almaher@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#913518}

--

wpt-commits: 7460ac895c551dcc9e7b653145a297177fbe92b4
wpt-pr: 30081
2021-09-02 10:29:43 +00:00

24 lines
525 B
HTML

<!DOCTYPE html>
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=1240384">
<style>
#multicol {
column-count: 2;
column-fill: auto;
column-gap: 5px;
width: 200px;
height: 100px;
}
#container {
position: relative;
box-sizing: border-box;
width: 100px;
overflow: scroll;
}
</style>
<p>PASS if no crash.</p>
<div id="multicol">
<div id="container">
<div style="width: 100px; height: 200px;"></div>
<div style="height: 100px;"></div>
</div>
</div>