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 <div style="width: 200px; height: 200px; transform: translateZ(0); background-co
lor: salmon;"></div> | 3 <div style="width: 200px; height: 200px; transform: translateZ(0); background-co
lor: salmon;"></div> |
4 <div style="position: absolute; z-index: 0; top: 8px; width: 100px; height: 100p
x"> | 4 <div style="position: absolute; z-index: 0; top: 8px; width: 100px; height: 100p
x"> |
5 <div id="target" style="width: 100px; height: 100px; transform: translateZ(0);
background-color: blue"> | 5 <div id="target" style="width: 100px; height: 100px; transform: translateZ(0);
background-color: blue"> |
6 </div> | 6 </div> |
7 <script> | 7 <script> |
8 function repaintTest() { | 8 function repaintTest() { |
9 document.querySelector('#target').remove(); | 9 document.querySelector('#target').remove(); |
10 } | 10 } |
11 | 11 |
12 runRepaintTest(); | 12 runRepaintAndPixelTest(); |
13 </script> | 13 </script> |
OLD | NEW |