non-standard-pseudo-elements.html (729B)
1 <!DOCTYPE html> 2 <html lang="en" class="reftest-wait"> 3 <title>position:fixed on non-standard ::-webkit-media-text-track-display should not affect</title> 4 <link rel="match" href="non-standard-pseudo-elements-ref.html"> 5 <style> 6 video { width:560px; height:320px; } 7 video::-webkit-media-text-track-display { 8 position: fixed !important; 9 } 10 </style> 11 <video> 12 <source src="/media/white.webm" type="video/webm"> 13 <source src="/media/white.mp4" type="video/mp4"> 14 <track label="English subtitles" kind="subtitles" srclang="en" src="support/test.vtt" default> 15 </video> 16 <script> 17 const v = document.querySelector('video'); 18 v.onseeked = () => { document.documentElement.classList.remove('reftest-wait'); }; 19 v.currentTime = 3; 20 </script> 21 </html>