summaryrefslogtreecommitdiffstats
path: root/toolkit/content/tests/reftests/videocontrols-dynamically-add-cc-ref.html
blob: 1dcf4949a62fef734f6fc4396fbecae6daf75901 (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
<!DOCTYPE html>
<html>
<head>
<style>
  html, body {
    margin: 0;
    padding: 0;
  }

  video {
    width: 320px;
    height: 240px;
  }

  #mask {
    position: absolute;
    z-index: 3;
    width: 320px;
    height: 200px;
    background-color: green;
    top: 0;
    left: 0;
  }
</style>
</head>
<body>
  <video id="vid" controls>
    <track kind="subtitles" src="foo.vtt" srclang="en">
  </video>
  <div id="mask"></div>
</body>
</html>