| video { background-color: red; } |
| <script src="media-file.js"></script> |
| <script type="text/javascript"> |
| testRunner.waitUntilDone(); |
| video = document.getElementsByTagName('video')[0]; |
| video.addEventListener('canplaythrough', canPlayThrough, false); |
| video.src = findMediaFile('video', 'content/counting'); |
| function canPlayThrough() { |
| video.addEventListener('seeked', seeked, false); |
| video.currentTime = 0.01; |
| <!-- This tests whether a video with a poster attribute correctly paints its background color after a video frame is painted. The page should render only a red box 352x200. --> |
| <video width=352 height=688 poster="content/counting.jpg"></video> |