Bug 549106 - Add a special print media query to messageBody.css for shrinktofit images. r=ThomasD
authorRichard Marti <richard.marti@gmail.com>
Sat, 15 Jul 2017 18:12:46 +0200
changeset 28448 ca430d5ac1be6b6418066639b7d59f7cd77ce9b0
parent 28447 130d043e685055c682059c92dc582acb2a65afd2
child 28449 34a2b1f74bf9a8d1812d40fdd1521981decb4357
push id1986
push userclokep@gmail.com
push dateWed, 02 Aug 2017 14:43:31 +0000
treeherdercomm-beta@b51c9adf2c9e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersThomasD
bugs549106
Bug 549106 - Add a special print media query to messageBody.css for shrinktofit images. r=ThomasD
mail/themes/linux/mail/messageBody.css
mail/themes/osx/mail/messageBody.css
mail/themes/windows/mail/messageBody.css
--- a/mail/themes/linux/mail/messageBody.css
+++ b/mail/themes/linux/mail/messageBody.css
@@ -85,16 +85,23 @@ img[overflowing]:not([shrinktofit]) {
 }
 
 img[overflowing][shrinktofit] {
   cursor: zoom-in;
   max-width: 100% !important;
   height: auto !important;
 }
 
+@media print {
+  img[shrinktofit] {
+    max-width: 100% !important;
+    height: auto !important;
+  }
+}
+
 /* ::::: vcard ::::: */
 
 .moz-vcard-table {
   margin-top: 10px;
   border-radius: 5px;
   border-color: ThreeDLightShadow;
   border-width: 1px;
   border-style: solid;
--- a/mail/themes/osx/mail/messageBody.css
+++ b/mail/themes/osx/mail/messageBody.css
@@ -86,16 +86,23 @@ img[overflowing]:not([shrinktofit]) {
 }
 
 img[overflowing][shrinktofit] {
   cursor: zoom-in;
   max-width: 100% !important;
   height: auto !important;
 }
 
+@media print {
+  img[shrinktofit] {
+    max-width: 100% !important;
+    height: auto !important;
+  }
+}
+
 /* ::::: vcard ::::: */
 
 .moz-vcard-table {
   margin-top: 10px;
   border-radius: 5px;
   border-color: ThreeDLightShadow;
   border-width: 1px;
   border-style: solid;
--- a/mail/themes/windows/mail/messageBody.css
+++ b/mail/themes/windows/mail/messageBody.css
@@ -85,16 +85,23 @@ img[overflowing]:not([shrinktofit]) {
 }
 
 img[overflowing][shrinktofit] {
   cursor: zoom-in;
   max-width: 100% !important;
   height: auto !important;
 }
 
+@media print {
+  img[shrinktofit] {
+    max-width: 100% !important;
+    height: auto !important;
+  }
+}
+
 /* ::::: vcard ::::: */
 
 .moz-vcard-table {
   margin-top: 10px;
   border-radius: 5px;
   border-color: ThreeDLightShadow;
   border-width: 1px;
   border-style: solid;