OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
3 <style> | 3 <style> |
4 #container { | 4 #container { |
5 position: absolute; | 5 position: absolute; |
6 z-index: 0; | 6 z-index: 0; |
7 left: 50px; | 7 left: 50px; |
8 top: 50px; | 8 top: 50px; |
9 } | 9 } |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 </style> | 23 </style> |
24 <div style="width:200px; height:200px; transform: translateZ(0px); background-co
lor: lightblue"></div> | 24 <div style="width:200px; height:200px; transform: translateZ(0px); background-co
lor: lightblue"></div> |
25 <div id="container"> | 25 <div id="container"> |
26 <span class="child"></span> | 26 <span class="child"></span> |
27 <span class="child"></span> | 27 <span class="child"></span> |
28 </div> | 28 </div> |
29 <script> | 29 <script> |
30 function repaintTest() { | 30 function repaintTest() { |
31 document.querySelectorAll('.child')[1].classList.add('embiggen'); | 31 document.querySelectorAll('.child')[1].classList.add('embiggen'); |
32 } | 32 } |
33 runRepaintTest(); | 33 runRepaintAndPixelTest(); |
34 </script> | 34 </script> |
OLD | NEW |