Merge pull request #13101 from emilio/print-bogus-supports
print: Remove invalid @supports condition.
This commit is contained in:
commit
93c062669c
@ -120,15 +120,7 @@ PDFPrintService.prototype = {
|
||||
this.pageStyleSheet = document.createElement("style");
|
||||
const pageSize = this.pagesOverview[0];
|
||||
this.pageStyleSheet.textContent =
|
||||
// "size:<width> <height>" is what we need. But also add "A4" because
|
||||
// Firefox incorrectly reports support for the other value.
|
||||
"@supports ((size:A4) and (size:1pt 1pt)) {" +
|
||||
"@page { size: " +
|
||||
pageSize.width +
|
||||
"pt " +
|
||||
pageSize.height +
|
||||
"pt;}" +
|
||||
"}";
|
||||
"@page { size: " + pageSize.width + "pt " + pageSize.height + "pt;}";
|
||||
body.appendChild(this.pageStyleSheet);
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user