Closed Bug 1857552 Opened 1 year ago Closed 1 year ago

@page margin:0 with body width 100vw results in incorrect right margin in print preview

Categories

(Core :: Printing: Output, defect)

Firefox 118
defect

Tracking

()

RESOLVED DUPLICATE of bug 1835108

People

(Reporter: tyteen4a03, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/118.0

Steps to reproduce:

Print this Codesandbox in full-screen mode in both Firefox 118 and Chrome 117: https://codesandbox.io/s/ff-print-margin-bug-2z249w

Most notably, the page has @page { margin: 0; } specified. The rest of the code is for making the problem appear (e.g. print-color-adjust).

Screenshots of the problem: https://imgur.com/a/6J1pHNi

Actual results:

There is a right margin.

Expected results:

There should be no right margin (i.e. what Chrome prints)

Summary: @page margin:0 results in incorrect right margin in print preview → @page margin:0 with body width 100vw results in incorrect right margin in print preview

Not sure how to edit the initial bug report but one detail I forgot to mention was it only happens when width:100vw;. width:100% does not have the right margin applied.

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
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1835108
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.