0
Files
src/third_party/blink/web_tests/printing/page-overflow-inside-overflow-hidden-expected.html
Morten Stenshorne 7435072f7e Add "monolithic" flag to fragments.
It's not enough to check LayoutBox::GetPaginationBreakability() in cases
where we disable fragmentation due to fragmentainer overflow inside
overflow:clip (or any non-visible overflow when printing).

Had to update a unit test to avoid failing the new DCHECK in
SetupFragmentBuilderForFragmentation(). Setting up a constraint space
for fragmentation when the element is monolithic (overflow:hidden) is
wrong.

Bug: 1342107
Change-Id: I55dc5616702f0bc56af27e781972808c42f589ea
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3930831
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1054468}
2022-10-04 02:03:59 +00:00

10 lines
294 B
HTML

<!DOCTYPE html>
<script>
testRunner.setPrinting();
internals.settings.setShouldPrintBackgrounds(true);
</script>
<div style="overflow:hidden; width:100px; height:100px; background:green;">
<div style="height:5000px;"></div>
</div>
<p>There should be a green square above, and no red.</p>