container-for-cue.html (827B)
1 <!doctype html> 2 <html class="reftest-wait"> 3 <head> 4 <title>CSS Container Queries Test: Container for pseudo elements</title> 5 <link rel="help" href="https://drafts.csswg.org/css-conditional-5/#container-queries"> 6 <link rel="match" href="container-for-cue-ref.html"> 7 <script src="/common/reftest-wait.js"></script> 8 <style> 9 video { 10 container-type: size; 11 width: 200px; 12 height: 200px; 13 } 14 @container (width = 200px) { 15 video::cue { background-color: green } 16 video::cue(b) { color: lime } 17 } 18 </style> 19 </head> 20 <body> 21 <video autoplay onplaying="this.onplaying = null; this.pause(); takeScreenshot();"> 22 <source src="/media/white.mp4" type="video/mp4"> 23 <source src="/media/white.webm" type="video/webm"> 24 <track default src="support/test.vtt"> 25 </video> 26 </body> 27 </html>