| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>track-webvtt-no-snap-to-lines-overlap</title> |
| <style> |
| .video { |
| display: inline-block; |
| position: relative; |
| width: 320px; |
| height: 240px; |
| } |
| html { overflow:hidden } |
| body { margin:0 } |
| .cue-box { |
| position: absolute; |
| font-family: sans-serif; |
| font-size: 12px; |
| } |
| .cue { |
| font-family: Ahem, sans-serif; |
| background-color: black; |
| color: green; |
| } |
| </style> |
| <script>var requirePixelDump = true;</script> |
| <script src="../video-test.js"></script> |
| <script src="../media-file.js"></script> |
| <script> |
| window.addEventListener('load', async event => { |
| consoleWrite('RUN(video.querySelector("track").src = "captions-webvtt/no-snap-to-lines-overlap.vtt")'); |
| consoleWrite('RUN(video.textTracks[0].mode = "showing")'); |
| consoleWrite('EVENT(load)'); |
| consoleWrite('RUN(video.src = findMediaFile("video", "w3c/track/webvtt/media/white"))'); |
| consoleWrite('EVENT(canplaythrough)'); |
| endTest(); |
| }); |
| </script> |
| </head> |
| <body> |
| <div class="video"> |
| <div class="cue-box" style="left:0; top:0; text-align: left;"> |
| <span class="cue">Left</span><br> |
| <span class="cue">Below</span> |
| </div> |
| <div class="cue-box" style="right:0; top:0; text-align: right"> |
| <span class="cue">Right</span><br> |
| <span class="cue">Below</span> |
| </div> |
| <div class="cue-box" style="left:0; bottom:0; text-align: left"> |
| <span class="cue">Above</span><br> |
| <span class="cue">Left</span> |
| </div> |
| <div class="cue-box" style="right:0; bottom:0; text-align: right"> |
| <span class="cue">Above</span><br> |
| <span class="cue">Right</span> |
| </div> |
| </div> |
| </body> |
| </html> |