summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/geometry/clipped-video-controller.html
blob: f0909efac9f049b58f991c3be8ae9d5b50714c97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>

<html>
<head>
  <style>
    
      #box {
        position: absolute;
        top: 50px;
        left: 20px;
        height: 50px;
        width: 50px;
        overflow: hidden;
        border: 10px solid green;
      }
    
  </style>
  <script src="../resources/media-testing.js"></script>
  <script src="../../media/media-file.js"></script>

  <script type="text/javascript" charset="utf-8">
    if (window.testRunner)
      testRunner.dumpAsText();
  
    function testDone()
    {
      if (window.testRunner)
        testRunner.notifyDone();
    }

    function doTest()
    {
      var video = document.getElementsByTagName('video')[0];
      setupVideo(video, '../resources/video', testDone);
    }
  </script>
</head>
<body onload="doTest()">
    <p>The video controller should not be visible below</p>
    <div id="box">
      <video controls></video>
    </div>
</body>
</html>