| <!DOCTYPE html> |
| |
| <html> |
| <head> |
| <style type="text/css" media="screen"> |
| body { background-color:silver } |
| |
| .box { |
| height: 200px; |
| width: 200px; |
| margin: 10px; |
| padding: 5px; |
| background-color: blue; |
| } |
| |
| .composited { |
| -webkit-transform: translateZ(0); |
| } |
| |
| </style> |
| <script type="text/javascript" charset="utf-8"> |
| function doTest() |
| { |
| window.setTimeout(function() { |
| document.getElementById('test').className = 'box'; |
| parent.testDone(); |
| }, 50); |
| } |
| window.addEventListener('load', doTest, false); |
| </script> |
| </head> |
| <body> |
| |
| <div id="test" class="composited box"> |
| </div> |
| |
| </body> |
| </html> |