Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../../fast/repaint/resources/text-based-repaint.js" type="text/java script"></script> | |
| 5 <script> | |
| 6 function repaintTest() | |
| 7 { | |
| 8 if (window.testRunner) { | |
| 9 document.getElementById('one').style.opacity = '0.5'; | |
| 10 document.body.offsetTop; | |
| 11 document.getElementById('one').style.opacity = '1'; | |
| 12 document.body.offsetTop; | |
| 13 } | |
| 14 } | |
| 15 </script> | |
| 16 <style> | |
| 17 .exp { | |
| 18 margin: 10px; | |
| 19 padding: 10px; | |
| 20 opacity: 1; | |
| 21 } | |
| 22 .btn { | |
|
ojan
2014/01/14 22:05:02
Wat?
| |
| 23 background-color: cyan; | |
| 24 padding: 10px; | |
| 25 margin: 10px; | |
| 26 } | |
| 27 .flex { | |
| 28 display: flex; | |
| 29 flex-direction: column; | |
| 30 } | |
| 31 </style> | |
| 32 </head> | |
| 33 <body onload="runRepaintTest()"> | |
| 34 <div class="flex"> | |
| 35 <div class="exp" id="one"></div> | |
| 36 <div class="exp" id="two"></div> | |
| 37 </div> | |
| 38 </body> | |
| OLD | NEW |