blob: cd865158a50e3f51669dcfe47efc281b47e502f9 [file] [log] [blame]
<!DOCTYPE html>
<title>Tests that setting display to block does not crash the browser.</title>
<style>
-webkit-media-text-track-display { display: block; }
</style>
<script src="../media-file.js"></script>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
test(function() {
var video = document.createElement("video");
video.src = findMediaFile("video", "../content/test");
video.addTextTrack("captions", "regular captions track", "en");
video.textTracks[0].addCue(new VTTCue(0, 4, ""));
video.play();
});
</script>