Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-conditional/container-queries/container-for-cue.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html class="reftest-wait">
<head>
<title>CSS Container Queries Test: Container for pseudo elements</title>
<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.mp4" type="video/mp4">
<source src="/media/white.webm" type="video/webm">
<track default src="support/test.vtt">
</video>
</body>
</html>