Closed GautierLePire closed 5 years ago
Thanks for reporting! A similar issue that seems to be the same cause has reported to https://github.com/mozilla/pdf.js/issues/10572, and this issue would be enhanced the evidence of that report.
A workaround via inline SVG is so nice. I tested in Chrome, Firefox, Adobe Acrobat, and macOS Preview. These are working perfectly.
I updated background
declaration to give more compatibillity with the tweaked style. We would use in uncover theme if no problems.
&::after {
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 1 1" width="1" height="1"><path d="M0 1h1v-1Z" fill="#{rgba($text, 0.05)}"/></svg>') no-repeat center center;
background-size: cover;
}
Now Marp Core v0.9.0 has shipped with SVG workaround for uncover theme. 🚢
pdf.js (Firefox's default pdf engine) doesn't render page corners of the uncover theme.
Firefox:
Chrome:
Current workaround: I've replaced the linear gradient with a svg image.
uncover.scss:14
It now works in both Chrome and Firefox, but I have not tested on other pdf readers.