| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../resources/runner.js"></script> | 4 <script src="../resources/runner.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <div id="test"></div> | 7 <div id="test"></div> |
| 8 </body> | 8 </body> |
| 9 <script> | 9 <script> |
| 10 var div = document.getElementById("test"); | 10 var div = document.getElementById("test"); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 'text-align' : 'center', | 64 'text-align' : 'center', |
| 65 'text-decoration' : 'blink', | 65 'text-decoration' : 'blink', |
| 66 'text-transform' : 'capitalize', | 66 'text-transform' : 'capitalize', |
| 67 'top' : '25%', | 67 'top' : '25%', |
| 68 'vertical-align' : 'text-bottom', | 68 'vertical-align' : 'text-bottom', |
| 69 'visibility' : 'visible', | 69 'visibility' : 'visible', |
| 70 'width' : '300px', | 70 'width' : '300px', |
| 71 'webkit-transform' : 'scale3d(0.5, 0.5, 0.5)', | 71 'webkit-transform' : 'scale3d(0.5, 0.5, 0.5)', |
| 72 'word-spacing' : '40px', | 72 'word-spacing' : '40px', |
| 73 }; | 73 }; |
| 74 PerfTestRunner.measureRunsPerSecond({run:function() { | 74 PerfTestRunner.measureRunsPerSecond({ |
| 75 for (key in properties) { | 75 description: "Measures performance of the CSS style getter and setter method
s (elem.style.(getPropertyValue|removeProperty|setProperty)).", |
| 76 var value = div.style.getPropertyValue(key); | 76 run:function() { |
| 77 div.style.removeProperty(key); | 77 for (key in properties) { |
| 78 div.style.setProperty(key, properties[key]); | 78 var value = div.style.getPropertyValue(key); |
| 79 div.style.removeProperty(key); |
| 80 div.style.setProperty(key, properties[key]); |
| 81 } |
| 79 } | 82 } |
| 80 }}); | 83 }); |
| 81 </script> | 84 </script> |
| 82 </html> | 85 </html> |
| OLD | NEW |