summaryrefslogtreecommitdiff
path: root/ext/js/accessibility/google-docs-util.js
diff options
context:
space:
mode:
authorCashew <52880648+Scrub1492@users.noreply.github.com>2023-12-29 10:31:45 +0700
committerGitHub <noreply@github.com>2023-12-29 03:31:45 +0000
commitd90d408279938d389019a8bed15c5eb95af7c8bc (patch)
tree0c81f456e3aaf853528c51b0d85ae54fcde05412 /ext/js/accessibility/google-docs-util.js
parentc13ee62b84693346e28741d7f016c6700a2c27d4 (diff)
Comment updates (#481)
* comment updates * comment updates
Diffstat (limited to 'ext/js/accessibility/google-docs-util.js')
-rw-r--r--ext/js/accessibility/google-docs-util.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/js/accessibility/google-docs-util.js b/ext/js/accessibility/google-docs-util.js
index 151b6340..cc6cbd69 100644
--- a/ext/js/accessibility/google-docs-util.js
+++ b/ext/js/accessibility/google-docs-util.js
@@ -49,11 +49,13 @@ export class GoogleDocsUtil {
}
/**
+ * Gets this <style> node, or creates one if it doesn't exist.
+ *
+ * A <style> node is necessary to force the SVG <rect> elements to have a fill,
+ * which allows them to be included in document.elementsFromPoint's return value.
* @returns {HTMLStyleElement}
*/
static _getStyleNode() {
- // This <style> node is necessary to force the SVG <rect> elements to have a fill,
- // which allows them to be included in document.elementsFromPoint's return value.
if (typeof this._styleNode === 'undefined') {
const style = document.createElement('style');
style.textContent = [