Open Bug 1847915 Opened 2 years ago Updated 2 years ago

max-width calculated wrong for object tag in print mode

Categories

(Core :: Printing: Output, defect)

Firefox 116
defect

Tracking

()

People

(Reporter: andi, Unassigned)

Details

Attachments

(1 file)

Attached file ffbug.html

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36

Steps to reproduce:

Embedding an SVG in an object tag and limiting the object's size to 100% does not work correctly when printing.

Actual results:

In screen mode, the SVG is correctly scaled to 100%

In emulated print mode using the developer tools, the SVG is correctly scaled to 100%

In the actual print (PDF and preview) the SVG is scaled to roughly half the page width and the aspect ratio is not adhered to.

The attached file can be used to reproduce the issue.

Expected results:

The SVG should be scaled to 100% page width in print.

The Bugbug bot thinks this bug should belong to the 'Core::Printing: Output' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Printing: Output
Product: Firefox → Core
Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: