OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 #square { | 3 #square { |
4 background-color: blue; | 4 background-color: blue; |
5 width: 30px; | 5 width: 30px; |
6 height: 30px; | 6 height: 30px; |
7 position: relative; | 7 position: relative; |
8 -webkit-backface-visibility: hidden; | 8 -webkit-backface-visibility: hidden; |
9 } | 9 } |
10 | 10 |
11 #testResults { | 11 #testResults { |
12 display: none; | 12 display: none; |
13 } | 13 } |
14 </style> | 14 </style> |
15 | 15 |
16 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 16 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
17 <script> | 17 <script> |
18 function repaintTest() { | 18 function repaintTest() { |
19 // Remove the div's only compositing reason. This should trigger a repaint. | 19 // Remove the div's only compositing reason. This should trigger a repaint. |
20 document.getElementById("square").style.webkitBackfaceVisibility = "visible"
; | 20 document.getElementById("square").style.webkitBackfaceVisibility = "visible"
; |
21 } | 21 } |
22 runRepaintTest(); | 22 runRepaintAndPixelTest(); |
23 </script> | 23 </script> |
24 | 24 |
25 <div id="square"></div> | 25 <div id="square"></div> |
OLD | NEW |