+18
−2
Loading
Bug 1833244 p3. Implement sheet orientation switching/rotation for `page-orientation`. r=AlaskanEmily,dholbert Where supported (print preview and print-to-PDF), this implements changing the orientation and/or rotation of print sheets, as appropriate, in response to CSS `page-orientation`. When supported we: - in the single page-per-sheet case, rotate the sheet in order to implement any `page-orientation` rotation on the sheet. Rotating the sheet is necessary so that the pages in the PDF files that we output are correct. - in the multiple pages-per-sheet case, we already rotate individual pages in their grid cell. This change keeps such pages rotated, as appropriate, but augments that behavior by switching the orientation of the sheet (based on the first page on the sheet) if necessary to best place the page to make maximum use of the space. Depends on D179423 Differential Revision: https://phabricator.services.mozilla.com/D179448