summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/container-queries/container-for-cue.html
blob: f53d161db0dda46b608c40e5ef1ccf714828a364 (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
<!doctype html>
<html class="reftest-wait">
<head>
  <title>CSS Container Queries Test: Container for pseudo elements</title>
  <link rel="help" href="https://drafts.csswg.org/css-contain-3/#container-queries">
  <link rel="match" href="container-for-cue-ref.html">
  <script src="/common/reftest-wait.js"></script>
  <style>
    video {
      container-type: size;
      width: 200px;
      height: 200px;
    }
    @container (width = 200px) {
      video::cue { background-color: green }
      video::cue(b) { color: lime }
    }
  </style>
</head>
<body>
  <video autoplay onplaying="this.onplaying = null; this.pause(); takeScreenshot();">
    <source src="/media/white.webm" type="video/webm">
    <source src="/media/white.mp4" type="video/mp4">
    <track default src="support/test.vtt">
  </video>
</body>
</html>