If an element in a flexbox is pre-paginated with `page-break-inside: avoid;`, it may be printed overlapping with subsequent elements
Categories
(Core :: Layout: Flexbox, defect, P3)
Tracking
()
People
(Reporter: k08045kk, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: testcase)
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0
Steps to reproduce:
- View the attached print-flexbox.html
- Press [Ctrl+P] to print (Print Preview or Create PDF)
Actual results:
If an element in a flexbox is pre-paginated with page-break-inside: avoid;
, it will extend out of the flexbox area. Elements that extend beyond the flexbox area will be overlapped by subsequent elements.
I think that the flexbox area is not aware of the expansion of the area due to page breaks within flexbox.
Expected results:
Even if an element in a flexbox is pre-paginated with page-break-inside: avoid;
, it will not extend beyond the flexbox area. Also, it will not overlap with subsequent elements.
Comment 2•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Layout: Flexbox' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Updated•4 years ago
|
Comment 3•2 years ago
|
||
I can confirm this - it just happened to me, and it produces some truly weird-looking behaviour:
(I'm using Firefox 107.0.1)
Relatedly, Firefox doesn't support "break-after:page" when printing, if any ancestor is "flex".
I think it should support this - as indeed Chrome does.
(However, if the spec says no, then it would really help the user if Fx could at least emit a notice).
Comment 4•9 months ago
|
||
The testcase in comment 0 looks good in print-preview in Nightly 122.0a1 (2023-12-06) after bug 1744363 is fixed.
Description
•