Skip to content

Commit

Permalink
Merge pull request #15001 from marco-c/canvas_presentational
Browse files Browse the repository at this point in the history
Set "presentation" role for page canvases (issue 14437)
  • Loading branch information
Snuffleupagus authored Jun 7, 2022
2 parents ae9ad1d + 8c96781 commit 7761d2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/pdf_page_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7761d2b

Please sign in to comment.