Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / computed-text-with-height-0.html
blobf074dbb2c1d656ed0e14d7c40b770182dade8700
1 <!DOCTYPE HTML>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
5 <style>
6 .hideAllContainers .container {
7 display: none;
9 </style>
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>
13 </div>
15 <script>
16 test(function(t){
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.");
21 </script>
23 <script>
24 if (window.testRunner)
25 document.body.className = "hideAllContainers";
26 </script>