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

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

Issue 2377193003: Don't use absolute bounding boxes in LayoutVTTCue (Closed)
Patch Set: Extend comments; adjust 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-expected.html
diff --git a/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-transformed-video-expected.html b/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-transformed-video-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..722ccf9a79a15a4a13d0e3e6a702fca42fe71198
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-transformed-video-expected.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<script src="../media-file.js"></script>
+<style>
+.container {
+ transform: translate(1px, 0px);
+ position: relative;
+ display: inline-block;
+ width: 320px;
+ height: 240px;
+}
+.cue {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ overflow: hidden;
+ text-align: start;
+}
+.cue > span {
+ font-family: sans-serif;
+ background: green;
+ color: green;
+ font-size: 50px;
+ padding: 2px;
+}
+</style>
+<div class="container">
+ <video>
+ <script>
+ document.currentScript.parentNode.src = findMediaFile('video', '../content/test');
+ </script>
+ </video>
+ <div class=video><div class="cue"><span>XXX</span></div></div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698