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

Side by Side Diff: LayoutTests/compositing/squashing/squash-onto-transform-backing.html

Issue 137143009: Add a number of tests for layer squashing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: moar expectations Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <head>
3 <style>
4
5 .compositedAndRotated {
6 -webkit-transform: translatez(0) rotate(45deg);
7 }
8
9 .box {
10 width: 100px;
11 height: 100px;
12 }
13
14 .behind {
15 position: absolute;
16 z-index: 1;
17 top: 100px;
18 left: 100px;
19 background-color: blue;
20 }
21
22 .middle {
23 position: absolute;
24 z-index: 1;
25 top: 20px;
26 left: 20px;
27 background-color: lime;
28 }
29
30 .top {
31 position: absolute;
32 z-index: 1;
33 top: 180px;
34 left: 180px;
35 background-color: cyan;
36 }
37
38 div:hover {
39 background-color: green;
40 }
41
42 </style>
43 <script>
44 if (window.testRunner)
45 testRunner.dumpAsText();
46
47 if (window.internals)
48 internals.settings.setLayerSquashingEnabled(true);
49
50 function runTest()
51 {
52 if (!window.internals) {
53 alert('This test requires window.internals')
54 return;
55 }
56
57 testRunner.display();
58 document.body.textContent = window.internals.layerTreeAsText(document, i nternals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
59 document.body.style.whiteSpace = 'pre';
60 }
61 </script>
62 </head>
63 <body onload="runTest()">
64 <div class="compositedAndRotated box behind"></div>
65 <div class="box middle"></div>
66 <div class="box top"></div>
67 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698