| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| <script src=../media-file.js></script> |
| <script src=../video-test.js></script> |
| <script src=../media-controls.js></script> |
| cueNode = textTrackDisplayElement(video, 'cue').firstElementChild; |
| testExpected("getComputedStyle(cueNode).fontWeight", "bold"); |
| cueNode = cueNode.nextElementSibling; |
| testExpected("getComputedStyle(cueNode).fontStyle", "italic"); |
| cueNode = cueNode.nextElementSibling; |
| testExpected("getComputedStyle(cueNode).textDecoration", "underline"); |
| consoleWrite("Test that u, b, i WebVTT objects are being styled correctly."); |
| video.src = findMediaFile('video', '../content/test'); |
| waitForEvent('seeked', seeked); |
| waitForEvent('canplaythrough', function() { video.currentTime = 0.1; }); |
| setCaptionDisplayMode('Automatic'); |
| <track src="captions-webvtt/styling-default.vtt" kind="captions" default> |