Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / first-letter-text-transform-causes-crash.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <style>
5        dt:first-letter{text-transform:uppercase;}
6 </style>
7 <script src="../resources/js-test-pre.js"></script>
8 <script src="../resources/accessibility-helper.js"></script>
9 </head>
10 <body>
11
12 <dt>dt</dt>
13
14 <p id="description"></p>
15 <div id="console"></div>
16
17 <script>
18     description("First letter text transform causes assert and bad type cast. This can cause a crash.");
19
20     // Trigger a layout operation to create the two RenderTextFragment instances.
21     document.body.children[0].offsetWidth;
22
23     if (window.accessibilityController) {
24         // Build up full accessibility tree.
25         document.body.focus();
26         touchAccessibilityTree(accessibilityController.focusedElement);
27     }
28
29 </script>
30
31 <script src="../resources/js-test-post.js"></script>
32 </body>
33 </html>