aria-api

access ARIA information from JavaScript
git clone https://git.ce9e.org/aria-api.git

commit
e0e5b5f4fb8924974d83ce8a15601b8727a472ff
parent
203f573c8eef5b361ab67ea8ad6eb3743ac344d6
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-06-22 17:17
hidden: treat visibility: collapsed the same as visibility: hidden

Diffstat

M lib/attrs.js 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/lib/attrs.js b/lib/attrs.js

@@ -68,7 +68,7 @@ const getAttribute = function(el, key) {
   68    68 			return true;
   69    69 		}
   70    70 		const style = window.getComputedStyle(el);
   71    -1 		if (style.display === 'none' || style.visibility === 'hidden') {
   -1    71 		if (style.display === 'none' || style.visibility === 'hidden' || style.visibility === 'collapse') {
   72    72 			return true;
   73    73 		}
   74    74 	}