OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
6 body { background-color:silver } | 6 body { background-color:silver } |
7 | 7 |
8 .box { | 8 .box { |
9 height: 200px; | 9 height: 200px; |
10 width: 200px; | 10 width: 200px; |
11 margin: 10px; | 11 margin: 10px; |
12 padding: 5px; | 12 padding: 5px; |
13 background-color: blue; | 13 background-color: blue; |
14 cursor: pointer; | 14 cursor: pointer; |
15 } | 15 } |
16 | 16 |
17 .composited { | 17 .composited { |
18 -webkit-transform: translateZ(0); | 18 transform: translateZ(0); |
19 } | 19 } |
20 | 20 |
21 </style> | 21 </style> |
22 <script type="text/javascript"> | 22 <script type="text/javascript"> |
23 function doTest() | 23 function doTest() |
24 { | 24 { |
25 window.setTimeout(function() { | 25 window.setTimeout(function() { |
26 document.getElementById('target').className = 'box'; | 26 document.getElementById('target').className = 'box'; |
27 parent.testDone(); | 27 parent.testDone(); |
28 }, 50); | 28 }, 50); |
29 } | 29 } |
30 window.addEventListener('load', doTest, false); | 30 window.addEventListener('load', doTest, false); |
31 </script> | 31 </script> |
32 </head> | 32 </head> |
33 <body> | 33 <body> |
34 <div id="target" class="composited box" onmousedown="parent.nodeClicked(this
)"></div> | 34 <div id="target" class="composited box" onmousedown="parent.nodeClicked(this
)"></div> |
35 </body> | 35 </body> |
36 </html> | 36 </html> |
OLD | NEW |