enable backgrounds images when printing to pdf (closes #271)

edit
Hakim El Hattab 2013-02-03 16:17:46 -05:00
parent 11fc906add
commit 6b0fff3512
1 changed files with 14 additions and 15 deletions

View File

@ -10,6 +10,7 @@
background. This prevents elements from extending background. This prevents elements from extending
beyond the edge of the printed page, and prevents beyond the edge of the printed page, and prevents
unnecessary background images from printing */ unnecessary background images from printing */
* { * {
-webkit-print-color-adjust: exact; -webkit-print-color-adjust: exact;
} }
@ -19,16 +20,14 @@ body {
width: auto; width: auto;
height: auto; height: auto;
border: 0; border: 0;
margin: 0 5%;
padding: 0; padding: 0;
float: none !important; float: none !important;
overflow: visible; overflow: visible;
background-image: none !important;
} }
html { html {
width: auto; width: 100%;
height: auto; height: 100%;
overflow: visible; overflow: visible;
} }