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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/layer-creation/translatez-overlap.html

Issue 2393443002: Adjust compositing tests to be SPv2-compatible. (Closed)
Patch Set: none 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style type="text/css" media="screen"> 4 <style type="text/css" media="screen">
5 .box { 5 .box {
6 position: relative; 6 position: relative;
7 width: 100px; 7 width: 100px;
8 height: 100px; 8 height: 100px;
9 background-color: blue; 9 background-color: blue;
10 margin: 10px; 10 margin: 10px;
11 } 11 }
12 12
13 .composited { 13 .composited {
14 transform: translateZ(0); 14 transform: translateZ(0);
15 } 15 }
16 </style> 16 </style>
17 <script type="text/javascript" charset="utf-8"> 17 <script type="text/javascript" charset="utf-8">
18 if (window.testRunner) 18 if (window.testRunner)
19 testRunner.dumpAsText(); 19 testRunner.dumpAsText();
20 20
21 function doTest() 21 function doTest()
22 { 22 {
23 if (window.testRunner) { 23 if (window.testRunner) {
24 document.getElementById('results').innerText = window.internals.layerTr eeAsText(document); 24 document.getElementById('results').innerText = window.internals.layerTr eeAsText(document, window.internals.OUTPUT_CHILDREN_AS_LAYER_LIST);
25 testRunner.notifyDone(); 25 testRunner.notifyDone();
26 } 26 }
27 } 27 }
28 28
29 window.addEventListener('load', doTest, false); 29 window.addEventListener('load', doTest, false);
30 </script> 30 </script>
31 </head> 31 </head>
32 <body> 32 <body>
33 <div class="composited box"></div> 33 <div class="composited box"></div>
34 <!-- The second box should not be composited. --> 34 <!-- The second box should not be composited. -->
35 <div class="box"></div> 35 <div class="box"></div>
36 <pre id="results">Layer tree goes here in DRT.</pre> 36 <pre id="results">Layer tree goes here in DRT.</pre>
37 </body> 37 </body>
38 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698