2 <script src=
"../resources/testharness.js"></script>
3 <script src=
"../resources/testharnessreport.js"></script>
6 .hideAllContainers .container {
11 <div class=
"container">
12 <a id=
"button" href=
"#" role=
"button"><span style=
"height:0px;position:absolute;overflow:hidden">Friend Requests:
</span><span>0</span></a>
17 var axButton
= accessibilityController
.accessibleElementById("button");
18 assert_equals(axButton
.deprecatedTitle
, "AXTitle: Friend Requests: 0");
19 assert_equals(axButton
.name
, "Friend Requests: 0");
20 }, "Text with height:0, position:absolute, and overflow:hidden should still be included in the accessible text computation.");
24 if (window
.testRunner
)
25 document
.body
.className
= "hideAllContainers";