Sha256: 1c65b3ec35b6e2ecbc7d03822b27c76d62a0fefbab237586919165999fc7fc58
Contents?: true
Size: 675 Bytes
Versions: 375
Compression:
Stored size: 675 Bytes
Contents
const whitelist = ['SCRIPT', 'HEAD', 'TITLE', 'NOSCRIPT', 'STYLE', 'TEMPLATE']; if ( !whitelist.includes(node.nodeName.toUpperCase()) && axe.commons.dom.hasContentVirtual(virtualNode) ) { const styles = window.getComputedStyle(node); if (styles.getPropertyValue('display') === 'none') { return undefined; } else if (styles.getPropertyValue('visibility') === 'hidden') { // Check if visibility isn't inherited const parent = axe.commons.dom.getComposedParent(node); const parentStyle = parent && window.getComputedStyle(parent); if ( !parentStyle || parentStyle.getPropertyValue('visibility') !== 'hidden' ) { return undefined; } } } return true;
Version data entries
375 entries across 375 versions & 1 rubygems