blob: 17c1c3344c23da191fc90b87407980433de34d34 [file] [log] [blame]
<!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>