fune/testing/web-platform/tests/css/css-page/monolithic-overflow-030-print-ref.html
Morten Stenshorne c5c4e74162 Bug 1878952 [wpt PR 44421] - Correctly handle printing of overflowing monolithic OOFs., a=testonly
Automatic update from web-platform-tests
Correctly handle printing of overflowing monolithic OOFs.

We need to make sure that we create enough pages to contain tall
monolithic out-of-flow positioned descendants, including any overflow
inside of them.

Similar support for in-flow elements was added in CL:5029779, where we
at the same time stopped synthesizing missing pages after layout, but
instead started to trust layout. However, that was premature, since
out-of-flow positioned descendants of course need special treatment.

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

--

wpt-commits: 734e3b9058ae83e689e9344e0776693d01e56adb
wpt-pr: 44421
2024-02-13 08:17:47 +00:00

28 lines
930 B
HTML

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<style>
body {
margin: 0;
}
</style>
<div style="break-after:page;">
<div style="display:flow-root; height:1.5in;">
<p>
There should be four pages, and each one should have a green square in the
bottom right corner.
</p>
</div>
<div style="margin-left:auto; width:0.5in; height:0.5in; background:green;"></div>
</div>
<div style="break-after:page;">
<div style="height:1.5in;"></div>
<div style="margin-left:auto; width:0.5in; height:0.5in; background:green;"></div>
</div>
<div style="break-after:page;">
<div style="height:1.5in;"></div>
<div style="margin-left:auto; width:0.5in; height:0.5in; background:green;"></div>
</div>
<div style="break-after:page;">
<div style="height:1.5in;"></div>
<div style="margin-left:auto; width:0.5in; height:0.5in; background:green;"></div>
</div>