Merge pull request #15001 from marco-c/canvas_presentational

Set "presentation" role for page canvases (issue 14437)
This commit is contained in:
Jonas Jenwald 2022-06-07 20:03:38 +02:00 committed by GitHub
commit 7761d2bf95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.