OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
chrishtr
2014/03/03 21:40:32
Include
<script src="../../resources/js-test.js"
abarth-chromium
2014/03/03 22:01:31
I'm not sure how this test would work without outp
| |
2 <html> | |
3 <head> | |
4 <style> | |
5 .set { | |
6 position: absolute; | |
7 top: 8px; | |
8 } | |
9 .box { | |
10 height: 100px; | |
11 width: 100px; | |
12 background-color: lightblue; | |
13 } | |
14 .squashed { | |
15 height: 40px; | |
16 width: 40px; | |
17 background-color: lightgreen; | |
18 position: absolute; | |
19 left: 16px; | |
20 } | |
21 .hidden { | |
22 visibility: hidden; | |
23 } | |
24 .visible { | |
25 visibility: visible; | |
26 } | |
27 .composited { | |
28 -webkit-transform: translateZ(1px); | |
29 } | |
30 </style> | |
31 <script> | |
32 if (window.testRunner) { | |
chrishtr
2014/03/03 21:40:32
Add description.
| |
33 testRunner.waitUntilDone(); | |
34 internals.settings.setLayerSquashingEnabled(true); | |
35 } | |
36 requestAnimationFrame(function() { | |
37 requestAnimationFrame(function() { | |
38 document.getElementById('target1').classList.add('visible'); | |
39 document.getElementById('target2').classList.add('visible'); | |
40 setTimeout(function() { | |
41 if (window.testRunner) | |
42 testRunner.notifyDone(); | |
43 }); | |
44 }); | |
45 }); | |
46 </script> | |
47 </head> | |
48 <body> | |
49 <div class="set"> | |
50 <div class="composited box"></div> | |
51 <div class="squashed hidden" style="top: 4px"></div> | |
52 <div id="target1" class="squashed hidden" style="top: 54px"></div> | |
53 </div> | |
54 | |
55 <div class="set" style="top: 116px"> | |
56 <div class="composited box"></div> | |
57 <div id="target2" class="squashed hidden" style="top: 4px"></div> | |
58 <div class="squashed hidden" style="top: 54px"></div> | |
59 </div> | |
60 </body> | |
61 </html> | |
OLD | NEW |