fune/testing/web-platform/tests/css/css-break/overflow-clip-014.html
Morten Stenshorne 0732cbe5c6 Bug 1827927 [wpt PR 39525] - Pre-paint: Match OOF layout behavior inside clipped containers., a=testonly
Automatic update from web-platform-tests
Pre-paint: Match OOF layout behavior inside clipped containers.

An OOF fragment is normally a direct child of a fragmentainer - unless
it's inside something monolithic. However, we need to check if this is
something truly monolithic, and not just a fragment that was set as
monolithic because we reached the end of a clipped container; see
NGConstrinatSpace::DisableFurtherFragmentation().

Otherwise we'd end up in PrePaintTreeWalk::WalkMissedChildren()
needlessly, and ignore any clipping.

Bug: 1432946
Change-Id: I24fc774f40bf337419f7e6ec336101e00a856f8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4422851
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: Alison Maher <almaher@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1130036}

--

wpt-commits: 1f349dabdf4f47f40abb47c588293f17f4c23758
wpt-pr: 39525
2023-04-18 09:10:33 +00:00

14 lines
758 B
HTML

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1432946">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="columns:2; gap:0; width:100px; height:100px; column-fill:auto; background:red;">
<div style="position:relative; overflow-y:clip; height:200px;">
<div style="position:absolute; width:100%; height:300px;">
<div style="height:200px; background:green;"></div>
<div style="height:200px; background:red;"></div>
</div>
<div style="height:1000px; background:red;"></div>
</div>
</div>