Default mouse cursor behavior should be auto-hide for full screen video with custom...
[WebKit-https.git] / LayoutTests / fullscreen / full-screen-crash-offsetLeft.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <video></video>
5 <p><a href="https://bugs.webkit.org/show_bug.cgi?id=89785">Bug 89785</a>: REGRESSION(r116446): Crash in RenderBoxModelObject::adjustedPositionRelativeToOffsetParent</p>
6 <script src="full-screen-test.js"></script>
7 <script>
8     if ("webkitRequestFullScreen" in Element.prototype) {
9         if (!window.testRunner)
10             consoleWrite("To manually test this bug, switch to fullscreen. It shouldn't crash.");
11
12         video = document.getElementsByTagName("video")[0];
13         var fullscreenChanged = function(event)
14         {
15             video.offsetLeft;
16             video.offsetTop;
17             consoleWrite("PASSED, the page didn't crash.");
18             endTest();
19         };
20         document.addEventListener('webkitfullscreenchange', fullscreenChanged);
21
22         runWithKeyDown(function () {
23             video.webkitRequestFullScreen();
24         });
25     } else {
26         consoleWrite("FAILED, couldn't find webkitRequestFullScreen.");
27         endTest();
28     }
29 </script>
30 </body>
31 </html>