| <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> |
| video::cue { stroke-width: 4px; stroke-color: black; paint-order: stroke; stroke-linecap: round; stroke-linejoin: round;} |
| testExpected("getComputedStyle(textTrackDisplayElement(video, 'cue')).strokeWidth", "4px"); |
| testExpected("getComputedStyle(textTrackDisplayElement(video, 'cue')).strokeColor", "rgb(0, 0, 0)"); |
| testExpected("getComputedStyle(textTrackDisplayElement(video, 'cue')).paintOrder", "stroke"); |
| testExpected("getComputedStyle(textTrackDisplayElement(video, 'cue')).strokeLinejoin", "round"); |
| testExpected("getComputedStyle(textTrackDisplayElement(video, 'cue')).strokeLinecap", "round"); |
| testExpected("getComputedStyle(textTrackDisplayElement(video, 'cue')).overflow", "visible"); |
| consoleWrite("Test that style to all cues is applied correctly."); |
| video.src = findMediaFile('video', '../content/test'); |
| waitForEvent('seeked', seeked); |
| waitForEvent('canplaythrough', function() { video.currentTime = .5; }); |
| setCaptionDisplayMode('Automatic'); |
| <track src="captions-webvtt/styling.vtt" kind="captions" default> |