Align character position in a11y tree with the actual rendering

This helps screen readers to draw selection outline at the correct
position.
This commit is contained in:
Jason Lin
2023-11-10 21:21:50 +11:00
parent a0da287b9c
commit 26dc69446e
2 changed files with 35 additions and 2 deletions
+6
View File
@@ -157,10 +157,16 @@
}
.xterm .xterm-accessibility-tree {
font-family: monospace;
user-select: text;
white-space: pre;
}
.xterm .xterm-accessibility-tree > div {
transform-origin: left;
width: fit-content;
}
.xterm .live-region {
position: absolute;
left: -9999px;