Open Bug 1963877 Opened 9 months ago Updated 9 months ago

vw and vh units resolve against the wrong page-box-dimension, with `@page { size: landscape }"

Categories

(Core :: Printing: Output, defect)

defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached file testcase 1

STR:

  1. Print-preview the attached testcase, using the Save-to-PDF print backend.

EXPECTED RESULTS:
1 landscape-oriented page of output, with a landscape-oriented black rectangle nestled inside of it.

ACTUAL RESULTS:
2 landscape-oriented pages of output, with a portrait-oriented black rectangle split across those two pages.

Chrome gives EXPECTED RESULTS.
Firefox gives ACTUAL RESULTS.

Note: The black rectangle is sized using width: 100vw; height: 100vh. It looks like we're not taking the landscape orientation into account when resolving those.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: