blob: e51acb7a3b1c3d13e2ba21436589e86572449dee [file] [log] [blame]
<html>
<head>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
</head>
<body>
<a href="#" id="link">
<script>
test((t) => {
var link = document.getElementById("link");
link.focus();
link.style.display = "block";
accessibilityController.focusedElement.name;
}, "Changing the display of a link from inline to block invalidates layout, but doesn't trigger a layout right away. Ensure that accessing the accessibility object's text before the layout happens doesn't cause a crash.");
</script>
</body>