Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / squashing / squash-partial-repaint-inside-squashed-layer.html
blob7c8e94da4aeecfa66d72cbfde9c02107adc24d1d
1 <!DOCTYPE html>
2 <head>
3 <style>
4 .composited {
5 transform: translatez(0);
8 .box {
9 width: 100px;
10 height: 100px;
13 .behind {
14 position: absolute;
15 z-index: 1;
16 top: 100px;
17 left: 100px;
18 background-color: blue;
21 .middle {
22 position: absolute;
23 z-index: 1;
24 top: 180px;
25 left: 180px;
26 background-color: lime;
29 .repaintdiv {
30 position: absolute;
31 z-index: 1;
32 top: 260px;
33 left: 260px;
34 width: 182px;
35 height: 29px;
36 background-color:red;
39 .top {
40 position: absolute;
41 z-index: 1;
42 top: 280px;
43 left: 340px;
44 background-color: cyan;
47 div:hover {
48 background-color: green;
49 transform:translatez(0);
52 </style>
53 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
54 <script>
55 function repaintTest()
57 document.getElementById('repaintdiv').style.background = 'salmon';
59 runRepaintTest();
60 </script>
61 </head>
62 <body>
63 <div class="composited box behind"></div>
64 <div class="box middle"></div>
65 <img id="repaintdiv" class="repaintdiv"></img>
66 <div class="box top"></div>
67 </body>