Closed Bug 1372836 Opened 8 years ago Closed 1 year ago

[css-break] Images are being fragmented

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox-esr45 --- affected
firefox-esr52 --- affected
firefox54 --- affected
firefox55 --- affected
firefox57 --- wontfix

People

(Reporter: tzsoldos, Unassigned)

Details

Attachments

(1 file)

Attached image Capture.PNG
[Affected versions]: Firefox 55.0b1 (Build Id:20170612224034) [Affected platforms]: Windows 7 x64. Windows 8.1 x64. Ubuntu 14.04 x64. [Steps to reproduce]: 1.Launch Firefox. 2.Access the http://www.bbc.com/news/world-africa-40246964. 3.From Menu bar go to File → Print Preview. [Expected result]: The full image is displayed on a single page. [Actual result]: The preview is not working properly, there are images split in two pages. [Regression range]: It is not a regression. [Additional Information]: Please observe the attached example file.
Has Regression Range: --- → no
Has STR: --- → yes
As far as I know, this behavior is intentional. However, the relevant spec says: "Some content is not fragmentable, for example many types of replaced elements [CSS21] (such as images or video), [...] Such content is considered monolithic" https://drafts.csswg.org/css-break/#monolithic It continues to say that: "Finally, if there are no possible break points [...] the UA may also fragment the contents of monolithic elements by slicing the element’s graphical representation." https://drafts.csswg.org/css-break/#unforced-breaks Hmm, perhaps we should simply add "img, video, ... { break-inside:avoid; }" to the UA sheet? It seems better to allow the author to override the fragmentation behavior rather than hardcoding it.
Component: Printing → Layout
Product: Toolkit → Core
Summary: Images are split in Print Preview → [css-break] Images are being fragmented
Priority: -- → P3
Severity: normal → S3

The issue is no longer reproducible on the latest Nightly 132.0a1 (20240925152840) under Widows 10, Win 11 and macOS 11.
Marking this issue as WORKSFORME.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: