summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/reflections/load-video-in-reflection.html
blob: 14e7293d2494ccd044f8b9e2131885efff75aa62 (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
45
<!DOCTYPE html>

<html>
<head>
  <style type="text/css" media="screen">

    .container {
      width: 300px;
      -webkit-animation: spin 18s infinite linear;
    }
    
    video {
      -webkit-box-reflect: below;
      background-color: red;
    }

    @-webkit-keyframes spin {
      from { transform: rotate(0); }
      to   { transform: rotate(0); }
    }

  </style>
  <script src="../resources/media-testing.js"></script>
  <script src="../../media/media-file.js"></script>
  <script type="text/javascript" charset="utf-8">
    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>You should see a reflected video below, rather than the red video background.</p>
  <div class="container">
    <video></video>
  </div>
</body>
</html>