2 <div style = "height: 150px;">
3 <a href="#" id="link1"><div style="width: 20px; height: 20px; display: inline-block"></div><div style="width: 80px; height: 100px; float: left;"></div></a>
5 <div style = "height: 150px;">
6 <a href="#" id="link2"><div style="width: 100px; height: 96px; position: relative; display: inline-block;"></div></a>
8 <div id="result"></div>
10 if (window.accessibilityController) {
11 testRunner.dumpAsText();
13 document.getElementById("link1").focus();
14 var link1 = accessibilityController.focusedElement;
15 document.getElementById("link2").focus();
16 var link2 = accessibilityController.focusedElement;
18 document.getElementById("result").innerText = "link 1 dimensions: " + link1.width + " x " + link1.height + "; link 2 dimensions: " + link2.width + " x " + link2.height;