MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / applyA11yNodeStyle

Function applyA11yNodeStyle

js/ply_accessibility.js:10–16  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

8var a11y_viewport_height = 1;
9
10function applyA11yNodeStyle(el) {
11 el.style.cssText =
12 "position:fixed;pointer-events:none;overflow:hidden;" +
13 "margin:0;padding:0;border:0;background:transparent;" +
14 "color:transparent;opacity:0.001;box-sizing:border-box;" +
15 "white-space:nowrap;";
16}
17
18function setA11yNodeBounds(el, x, y, width, height) {
19 var rect = canvas.getBoundingClientRect();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected