Merge pull request #15001 from marco-c/canvas_presentational
Set "presentation" role for page canvases (issue 14437)
This commit is contained in:
commit
7761d2bf95
@ -837,6 +837,7 @@ class PDFPageView {
|
|||||||
|
|
||||||
const viewport = this.viewport;
|
const viewport = this.viewport;
|
||||||
const canvas = document.createElement("canvas");
|
const canvas = document.createElement("canvas");
|
||||||
|
canvas.setAttribute("role", "presentation");
|
||||||
|
|
||||||
// Keep the canvas hidden until the first draw callback, or until drawing
|
// Keep the canvas hidden until the first draw callback, or until drawing
|
||||||
// is complete when `!this.renderingQueue`, to prevent black flickering.
|
// is complete when `!this.renderingQueue`, to prevent black flickering.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user