OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <head> | |
3 <style> | |
4 .composited { | |
5 transform: translatez(0); | |
6 } | |
7 | |
8 .box { | |
9 width: 100px; | |
10 height: 100px; | |
11 } | |
12 | |
13 .behind { | |
14 position: absolute; | |
15 z-index: 1; | |
16 top: 100px; | |
17 left: 100px; | |
18 background-color: blue; | |
19 } | |
20 | |
21 .middle { | |
22 position: absolute; | |
23 z-index: 1; | |
24 top: 180px; | |
25 left: 180px; | |
26 background-color: lime; | |
27 } | |
28 | |
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; | |
37 } | |
38 | |
39 .top { | |
40 position: absolute; | |
41 z-index: 1; | |
42 top: 280px; | |
43 left: 340px; | |
44 background-color: cyan; | |
45 } | |
46 | |
47 div:hover { | |
48 background-color: green; | |
49 transform:translatez(0); | |
50 } | |
51 | |
52 </style> | |
53 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | |
54 <script> | |
55 function repaintTest() | |
56 { | |
57 document.getElementById('repaintdiv').style.background = 'salmon'; | |
58 } | |
59 runRepaintAndPixelTest(); | |
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> | |
OLD | NEW |