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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/webvtt/rendering/cues-with-video/processing-model/repaint.html

Issue 2697453005: Import wpt@758b3b4cfa805067f36121333ba031e583d3a62c (Closed)
Patch Set: Add -expected.txt files. Created 3 years, 10 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 <html class="reftest-wait">
3 <title>WebVTT rendering, cue should repaint after hiding a covering abspos box</ title>
4 <link rel="match" href="repaint-ref.html">
5 <style>
6 #wrapper {
7 position: relative;
8 }
9 #cover {
10 position: absolute;
11 left: 0px;
12 top: 180px;
13 width: 320px;
14 height: 60px;
15 background-color: gray;
16 }
17 video {
18 width: 320px;
19 height: 240px;
20 }
21 ::cue {
22 font-size: 50px;
23 color: green;
24 }
25 </style>
26 <p>You should see the word 'PASS' below.</p>
27 <script src="/common/reftest-wait.js"></script>
28 <div id=wrapper>
29 <video>
30 <source src="/media/white.webm" type="video/webm">
31 <source src="/media/white.mp4" type="video/mp4">
32 </video>
33 <div id=cover></div>
34 </div>
35 <script>
36 var v = document.querySelector('video');
37 var c = document.getElementById('cover');
38 var t = v.addTextTrack('subtitles');
39 t.mode = "showing";
40 t.addCue(new VTTCue(0, 100, 'PASS'));
41 v.onplaying = function() {
42 setTimeout(function() {
43 v.pause();
44 setTimeout(function() {
45 c.style.visibility = 'hidden';
46 setTimeout(takeScreenshot, 100);
47 }, 100);
48 }, 100);
49 };
50 v.play();
51 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698