Skip to content

Commit 93c0626

Browse files
Merge pull request #13101 from emilio/print-bogus-supports
print: Remove invalid @supports condition.
2 parents 7fef896 + b932eaf commit 93c0626

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

web/pdf_print_service.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,7 @@ PDFPrintService.prototype = {
120120
this.pageStyleSheet = document.createElement("style");
121121
const pageSize = this.pagesOverview[0];
122122
this.pageStyleSheet.textContent =
123-
// "size:<width> <height>" is what we need. But also add "A4" because
124-
// Firefox incorrectly reports support for the other value.
125-
"@supports ((size:A4) and (size:1pt 1pt)) {" +
126-
"@page { size: " +
127-
pageSize.width +
128-
"pt " +
129-
pageSize.height +
130-
"pt;}" +
131-
"}";
123+
"@page { size: " + pageSize.width + "pt " + pageSize.height + "pt;}";
132124
body.appendChild(this.pageStyleSheet);
133125
},
134126

0 commit comments

Comments
 (0)