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

Side by Side 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, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../media-file.js"></script>
3 <style>
4 video {
5 transform: translate(1px, 0px);
foolip 2016/09/29 19:25:19 Haha, no more than necessary to test :)
6 }
7 video::cue {
8 font-size: 50px;
9 color: green;
10 background-color: green;
11 }
12 </style>
13 <video>
14 <script>
15 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.
16 var track = video.addTextTrack('subtitles');
17 var cue = new VTTCue(0, 10, 'XXX');
18 cue.align = 'start';
19 cue.line = 0;
20 track.addCue(cue);
21 track.mode = 'showing';
22 video.src = findMediaFile('video', '../content/test');
23 </script>
24 </video>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698