[Pkg-javascript-commits] [pdf.js] 40/72: Revert PR 5510, except in WebKit browsers, for breaking print preview in Firefox
David Prévot
taffit at moszumanska.debian.org
Wed Mar 18 20:15:58 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit f0d538d7cfe4e457f8995d91f39f72e4bec01e6e
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Wed Mar 4 18:09:37 2015 +0100
Revert PR 5510, except in WebKit browsers, for breaking print preview in Firefox
See https://bugzilla.mozilla.org/show_bug.cgi?id=1138993.
---
web/viewer-snippet-mozPrintCallback-polyfill.html | 8 ++++++++
web/viewer.css | 4 ----
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/web/viewer-snippet-mozPrintCallback-polyfill.html b/web/viewer-snippet-mozPrintCallback-polyfill.html
index ebf2e34..c452523 100644
--- a/web/viewer-snippet-mozPrintCallback-polyfill.html
+++ b/web/viewer-snippet-mozPrintCallback-polyfill.html
@@ -1,4 +1,12 @@
<div id="mozPrintCallback-shim" hidden>
+ <style>
+ at media print {
+ #printContainer div {
+ page-break-after: always;
+ page-break-inside: avoid;
+ }
+}
+ </style>
<style scoped>
#mozPrintCallback-shim {
position: fixed;
diff --git a/web/viewer.css b/web/viewer.css
index ec076ea..4432b30 100644
--- a/web/viewer.css
+++ b/web/viewer.css
@@ -1717,10 +1717,6 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * {
left: 0;
display: block;
}
- #printContainer div {
- page-break-after: always;
- page-break-inside: avoid;
- }
}
.visibleLargeView,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list