summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-overflow/overflow-video-ref.html
blob: 4a8a83e04a8c85faf429a8324b524111ec9d459c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!doctype html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>Verifies overflow applies to video elements</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow/#propdef-overflow">
<link rel="author" title="Khushal Sagar" href="mailto:khushalsagar@chromium.org">
<script src="/common/reftest-wait.js"></script>
<style>
  body {
    background: grey;
  }
</style>
<video autoplay>
  <source src="/media/white.webm" type="video/webm">
  <source src="/media/white.mp4" type="video/mp4">
</video>
<script type="text/javascript">
  document.getElementsByTagName('video')[0].addEventListener('play', (event) => {
    takeScreenshot();
  });
</script>