summaryrefslogtreecommitdiffstats
path: root/toolkit/components/pictureinpicture/tests/test-transparent-nested-iframes.html
blob: d7efcc1e9246d85b8075a3cd977c702e654ae652 (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
46
47
48
49
50
51
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>Picture-in-Picture test - transparent iframe</title>
</head>

<style>
  video {
    display: block;
  }

  .root {
    position: relative;
    display: inline-block;
  }

  .controls {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: white;
  }

  .container,
  iframe {
    width: 100%;
    height: 100%;
  }

  iframe {
    border: 0;
  }
</style>

<body>
  <div class="root">
    <div class="controls">
      <div class="container">
        <iframe src="about:blank"></iframe>
      </div>
    </div>

    <div class="video-container">
      <video id="video-transparent-background" src="test-video.mp4" loop="true"></video>
    </div>
  </div>
</body>
</html>