Repository: rust-lang/mdBook (language: rust)

Issue:
Print page on firefox includes blank column when sidebar is visible
On firefox, if the sidebar is visible, generating the print page will incorrectly include visible whitespace on the left side.

Actual:

<img width="997" alt="image" src="https://user-images.githubusercontent.com/43198/203123662-09b46eef-24ae-44bb-8638-5aac395d2822.png">

Expected:

<img width="996" alt="image" src="https://user-images.githubusercontent.com/43198/203123710-345666ee-727c-4c98-9d93-48b66eb67deb.png">

This doesn't seem to affect Chrome or Safari

Tested with Firefox 107.0.



Discussion / hints:

Fix patch:
diff --git a/src/theme/css/print.css b/src/theme/css/print.css
index dcf0ba64b9..80ec3a5441 100644
--- a/src/theme/css/print.css
+++ b/src/theme/css/print.css
@@ -7,7 +7,7 @@
 }
 
 #page-wrapper.page-wrapper {
-    transform: none;
+    transform: none !important;
     margin-inline-start: 0px;
     overflow-y: initial;
 }


Test patch: