Index: third_party/WebKit/LayoutTests/media/track/track-cue-rendering-transformed-video.html |
diff --git a/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-transformed-video.html b/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-transformed-video.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d359c552b368f2c237daf4ef15311dae3f31ee0d |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-transformed-video.html |
@@ -0,0 +1,23 @@ |
+<!DOCTYPE html> |
+<script src="../media-file.js"></script> |
+<style> |
+video { |
+ transform: translate(1px, 0px); |
+} |
+video::cue { |
+ font-size: 50px; |
+ color: green; |
+ background-color: green; |
+} |
+</style> |
+<video></video> |
+<script> |
+var video = document.querySelector('video'); |
+var track = video.addTextTrack('subtitles'); |
+var cue = new VTTCue(0, 10, 'XXX'); |
+cue.align = 'start'; |
+cue.line = 0; |
+track.addCue(cue); |
+track.mode = 'showing'; |
+video.src = findMediaFile('video', '../content/test'); |
+</script> |