| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>track-webvtt-snap-to-lines-inline-style</title> |
| <style> |
| html { overflow:hidden } |
| body { margin:0 } |
| ::cue { |
| font-family: Ahem, sans-serif; |
| font-size: 12px; |
| background-color: black; |
| color: green; |
| } |
| </style> |
| <script>var requirePixelDump = true;</script> |
| <script src="../video-test.js"></script> |
| <script src="../media-file.js"></script> |
| <script> |
| window.addEventListener('load', async event => { |
| findMediaElement(); |
| |
| run(`video.querySelector("track").src = "captions-webvtt/snap-to-lines-inline-style.vtt"`); |
| run(`video.textTracks[0].mode = "showing"`); |
| await waitFor(video.querySelector('track'), 'load'); |
| |
| run(`video.src = findMediaFile("video", "w3c/track/webvtt/media/white")`); |
| await waitFor(video, 'canplaythrough'); |
| |
| endTest(); |
| }); |
| </script> |
| </head> |
| <body> |
| <video> |
| <track id="testTrack" src="captions-webvtt/snap-to-lines-inline-style.vtt" kind="captions" default> |
| </video> |
| </body> |
| </html> |