blob: 3e45b336f65747c47482ab6e3d8a760dd61d517b [file] [log] [blame]
<!DOCTYPE html>
<title>Tests that position is not adjusted for non snap-to-lines cues.</title>
<style>
::cue {
background: green;
}
</style>
<script src="../media-file.js"></script>
<video></video>
<script>
var video = document.querySelector("video");
var track = video.addTextTrack("captions");
var cue = new VTTCue(0, 1, "Bear is Coming!!!!!");
cue.snapToLines = false;
cue.line = 20;
cue.align = "left";
track.addCue(cue);
track.mode = "showing";
video.src = findMediaFile("video", "../content/test");
</script>