mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Set "presentation" role for page canvases (issue 14437)
This commit is contained in:
parent
c25429be44
commit
8c9678158e
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue