| 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 } | 14 } |
| 15 | 15 |
| 16 .composited { | 16 .composited { |
| 17 -webkit-transform: translateZ(0); | 17 transform: translateZ(0); |
| 18 } | 18 } |
| 19 | 19 |
| 20 </style> | 20 </style> |
| 21 <script type="text/javascript" charset="utf-8"> | 21 <script type="text/javascript" charset="utf-8"> |
| 22 function doTest() | 22 function doTest() |
| 23 { | 23 { |
| 24 window.setTimeout(function() { | 24 window.setTimeout(function() { |
| 25 document.getElementById('test').className = 'composited box'; | 25 document.getElementById('test').className = 'composited box'; |
| 26 parent.testDone(); | 26 parent.testDone(); |
| 27 }, 50); | 27 }, 50); |
| 28 } | 28 } |
| 29 window.addEventListener('load', doTest, false); | 29 window.addEventListener('load', doTest, false); |
| 30 </script> | 30 </script> |
| 31 </head> | 31 </head> |
| 32 <body> | 32 <body> |
| 33 | 33 |
| 34 <div id="test" class="box"> | 34 <div id="test" class="box"> |
| 35 </div> | 35 </div> |
| 36 | 36 |
| 37 </body> | 37 </body> |
| 38 </html> | 38 </html> |
| OLD | NEW |