blob: 0c5bf158894f5e82a4fa48a91bdda0d76b77f456 [file]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/accessibility-helper.js"></script>
<script src="../resources/js-test.js"></script>
</head>
<body>
<div style="display:contents" id="div">
<p>Text</p>
<script>
// Should not be announced
</script>
</div>
<button aria-labelledby="div">foo</button>
<script>
var output = "This test ensures we do not expose display:none descendants in the accessibility tree, even if they are a target of a relationship.\n\n";
if (window.accessibilityController) {
output += dumpAXSearchTraversal(accessibilityController.rootElement.childAtIndex(0));
debug(output);
}
</script>
</body>
</html>