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

Side by Side Diff: LayoutTests/compositing/video/video-controls-layer-creation-squashing.html

Issue 785333002: Delete the Layer Squashing runtime feature. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 div { 5 div {
6 transform:translateZ(0); 6 transform:translateZ(0);
7 position: absolute; 7 position: absolute;
8 top: 100px; 8 top: 100px;
9 left: 0px; 9 left: 0px;
10 width: 300px; 10 width: 300px;
11 height: 300px; 11 height: 300px;
12 background-color: green; 12 background-color: green;
13 z-index: 2; 13 z-index: 2;
14 } 14 }
15 video { 15 video {
16 position: absolute; 16 position: absolute;
17 top: 0px; 17 top: 0px;
18 left: 0px; 18 left: 0px;
19 width: 272px; 19 width: 272px;
20 height: 153px; 20 height: 153px;
21 z-index: 3; 21 z-index: 3;
22 } 22 }
23 </style> 23 </style>
24 </head> 24 </head>
25 <script> 25 <script>
26 if (window.internals)
27 internals.settings.setLayerSquashingEnabled(true);
28
29 function runTest() { 26 function runTest() {
30 if (window.testRunner) 27 if (window.testRunner)
31 testRunner.waitUntilDone(true); 28 testRunner.waitUntilDone(true);
32 29
33 var video = document.querySelector('video'); 30 var video = document.querySelector('video');
34 video.onerror = endTest; 31 video.onerror = endTest;
35 video.src = "bogus.ogv"; 32 video.src = "bogus.ogv";
36 } 33 }
37 34
38 function endTest() { 35 function endTest() {
39 if (window.testRunner) 36 if (window.testRunner)
40 testRunner.notifyDone(); 37 testRunner.notifyDone();
41 } 38 }
42 </script> 39 </script>
43 <body onload="runTest()"> 40 <body onload="runTest()">
44 <!-- video controls should appear in their own layer --> 41 <!-- video controls should appear in their own layer -->
45 <video controls> 42 <video controls>
46 </video> 43 </video>
47 44
48 <!-- this div is beneath the video in a stacking context and should thro ugh the video into compositing due to overlap --> 45 <!-- this div is beneath the video in a stacking context and should thro ugh the video into compositing due to overlap -->
49 <div></div> 46 <div></div>
50 </body> 47 </body>
51 </html> 48 </html>
52 49
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698