4 <link rel=
"stylesheet" href=
"../fast/events/touch/resources/compositor-touch-hit-rects.css">
8 This test makes sure that touch hit rects are reported for fullscreen HTML5
9 video control elements even when there is a document handler.
11 <video id=
"video" width=
"300"></video>
12 <script src=
"full-screen-test.js"></script>
13 <script src=
"../fast/events/touch/resources/compositor-touch-hit-rects.js"></script>
15 var log
= consoleWrite
;
17 if (window
.testRunner
)
18 testRunner
.dumpAsText();
20 window
.onload = function () {
21 document
.addEventListener('touchstart', function() { });
23 consoleWrite("Should have single rect on document before fullscreen");
26 waitForEvent(document
, 'webkitfullscreenchange', function() {
27 if (window
.internals
.runtimeFlags
.forceOverlayFullscreenVideoEnabled
)
28 consoleWrite("Should report another rect which is not on the document");
30 consoleWrite("Should keep rect on document");
35 runWithKeyDown(function(){document
.querySelector('#video').webkitRequestFullScreen()});