mirror of
https://github.com/suitenumerique/docs.git
synced 2026-09-22 09:35:08 +02:00
🐛(frontend) keep commented text sharp when printing to PDF
Gecko cannot express a blended run in PDF, so it falls back to a bitmap of that run: every commented sentence came out of Print as a 72 dpi image while the rest of the page stayed text. The print stylesheet already hid the comment highlight, but only its background and border, so mix-blend-mode stayed and that is what forces the fallback. Measured on the engine the report came from, printing the same page twice: with the current rule the commented run is not extractable and the file carries an image plus its alpha mask, with mix-blend-mode neutralised it is text again and the file carries no image at all. Signed-off-by: tanguy chenier <tanguychenier@gmail.com>
This commit is contained in:
@@ -26,6 +26,7 @@ and this project adheres to
|
||||
- 🐛(frontend) scroll to the linked block in read-only documents #2663
|
||||
- 🐛(frontend) hide the selection highlight on presenter images #2665
|
||||
- 🐛(y-provider) prevent process crash on malformed websocket frames #2673
|
||||
- 🐛(frontend) keep commented text sharp when printing to PDF #2674
|
||||
- 🐛(docker) pull minio images from quay.io #2675
|
||||
- ♿️(frontend) restore presenter focus trapping after share links #2533
|
||||
|
||||
|
||||
@@ -35,11 +35,12 @@ const PRINT_ONLY_CONTENT_CSS = `
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Hide selection highlights */
|
||||
/* Hide selection highlights. */
|
||||
.ProseMirror-yjs-selection,
|
||||
.bn-thread-mark {
|
||||
background-color: transparent !important;
|
||||
border-bottom: none !important;
|
||||
mix-blend-mode: normal !important;
|
||||
}
|
||||
|
||||
/* Reset all layout containers for print flow */
|
||||
|
||||
Reference in New Issue
Block a user