Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>webvtt-white-space-pre-line</title>
<link rel="stylesheet" type="text/css" href="support/reference.css">
<script src="support/webvtt-rendering-test.js"></script>
<body>
<div>Test rendering of wrapped text when <code>white-space: pre-line</code> is set.</div>
<div class="test-diff">
<video-reference expected>
<cue style="width: 40%; left: 30%; bottom: 0px;">
<cue-background style="margin: auto">Test Text</cue-background>
</cue>
</video-reference>
<video muted playsinline>
<source src="/media/sound_5.mp3#t=0.05" type="audio/mp3">
<source src="/media/sound_5.oga#t=0.05" type="audio/ogg">
<track src="support/white-space-pre-line.webvtt" kind="captions" default>
</video>
</div>
</body>
</html>