Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / label-with-pseudo-elements.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 <script src="../resources/accessibility-helper.js"></script>
6 <style>
7     .before:before { content:"before "; }
8     .after:after { content:" after"; }
9 </style>
10 </head>
11 <body id="body">
12 <div id="content">
13   <label for="test1" class="before">test 1</label> <input id="test1"/><br />
14   <label for="test2" class="after">test 2</label> <input id="test2"/><br />
15   <label for="test3" class="before after">test 3</label> <input id="test3"/><br />
16   <label for="test4" id="test4" class="before after">test 4</label><br />
17   <label for="test5">test 5 <input value="input value"/></label> <input id="test5"/><br />
18   <label for="test6" class="before after">test 6 <input value="input value"/></label> <input id="test6"/>
19 </div>
20 <p id="description"></p>
21 <div id="console"></div>
22 <script>
23     description("This tests the accessible text alternatives results for labels with pseudo elements.");
24     if (window.accessibilityController) {
25         for (var i = 1; i <= 6; i++) {
26             var element = document.getElementById("test" + i);
27             var axElement = accessibilityController.accessibleElementById("test" + i);
28             debug(platformTextAlternatives(axElement, true) + "\n");
29         }
30         document.getElementById("content").style.visibility = "hidden";
31     }
32 </script>
33 <script src="../resources/js-test-post.js"></script>
34 </body>
35 </html>
36