Printing output should default to landscape when printing a document with a landscape page-size
Categories
(Core :: Printing: Setup, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox94 | --- | fixed |
People
(Reporter: alaskanemily, Assigned: alaskanemily)
References
Details
Attachments
(3 files)
Assignee | ||
Comment 1•3 years ago
|
||
Hey Emilio, do you have any insight into why the resolved pageSize style is always auto
in this patch? https://hg.mozilla.org/try/rev/73d8a4c58a457d2dd004630440b69ac1fb59f7b0
Comment 2•3 years ago
|
||
I'm confused, I apply that patch, I tweak layout.css.page-size.enabled=true
, and print-preview a simple document like this:
<!doctype html>
<style>
@page { size: landscape }
</style>
I see correctly the landscape
orientation processed. What am I missing?
Assignee | ||
Comment 3•3 years ago
|
||
This adds an optional paper orientation to PrintPreviewResultInfo populates it
from the CSS page size when finishing print preview. The value is then placed
in the PrintPreviewSuccessInfo to be sent to the frontend.
The value is not used by the frontend yet.
TODO: We don't actually reflow to the specified orientation initially yet.
Assignee | ||
Comment 4•3 years ago
|
||
This should ideally be returning a StyleOrientation, but due to the include
order we can't use that type in this file.
Updated•3 years ago
|
Assignee | ||
Comment 5•3 years ago
|
||
When a page-size that is not auto or square exists the print preview will use
the orientation of this page-size when doing initial reflow. The frontend
applies the orientation to the print settings without updating settings and
causing a second reflow, and the orientation selector is hidden.
Comment 7•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4abac7efc49a
https://hg.mozilla.org/mozilla-central/rev/19478f86e1de
https://hg.mozilla.org/mozilla-central/rev/000302929625
Description
•