Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Unified Diff: third_party/WebKit/LayoutTests/media/track/track-cue-rendering-transformed-video.html

Issue 2377193003: Don't use absolute bounding boxes in LayoutVTTCue (Closed)
Patch Set: Add test Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..d80cad1dd1ac986f609848aeb67c6f6acaddfe6d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-transformed-video.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<script src="../media-file.js"></script>
+<style>
+video {
+ transform: translate(1px, 0px);
foolip 2016/09/29 19:25:19 Haha, no more than necessary to test :)
+}
+video::cue {
+ font-size: 50px;
+ color: green;
+ background-color: green;
+}
+</style>
+<video>
+ <script>
+ var video = document.currentScript.parentNode;
foolip 2016/09/29 19:25:19 AFAICT the test doesn't require the script to be i
fs 2016/09/29 19:40:08 No, before 'load' should do I guess. I can "unwrap
foolip 2016/09/29 19:49:33 SGTM
fs 2016/09/30 08:05:32 Done.
+ 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>
+</video>

Powered by Google App Engine
This is Rietveld 408576698