Set "presentation" role for page canvases (issue 14437)

This commit is contained in:
Marco Castelluccio 2022-06-07 18:56:30 +02:00
parent c25429be44
commit 8c9678158e

View File

@ -837,6 +837,7 @@ class PDFPageView {
const viewport = this.viewport;
const canvas = document.createElement("canvas");
canvas.setAttribute("role", "presentation");
// Keep the canvas hidden until the first draw callback, or until drawing
// is complete when `!this.renderingQueue`, to prevent black flickering.