| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <head> | 2 <head> |
| 3 <style> | 3 <style> |
| 4 .composited { | 4 .composited { |
| 5 transform: translatez(0); | 5 transform: translatez(0); |
| 6 } | 6 } |
| 7 | 7 |
| 8 .box { | 8 .box { |
| 9 width: 100px; | 9 width: 100px; |
| 10 height: 100px; | 10 height: 100px; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 } | 45 } |
| 46 | 46 |
| 47 div:hover { | 47 div:hover { |
| 48 background-color: green; | 48 background-color: green; |
| 49 transform:translatez(0); | 49 transform:translatez(0); |
| 50 } | 50 } |
| 51 | 51 |
| 52 </style> | 52 </style> |
| 53 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 53 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 54 <script> | 54 <script> |
| 55 if (window.internals) | |
| 56 internals.settings.setLayerSquashingEnabled(true); | |
| 57 | |
| 58 function repaintTest() | 55 function repaintTest() |
| 59 { | 56 { |
| 60 document.getElementById('repaintdiv').style.background = 'salmon'; | 57 document.getElementById('repaintdiv').style.background = 'salmon'; |
| 61 } | 58 } |
| 62 runRepaintTest(); | 59 runRepaintTest(); |
| 63 </script> | 60 </script> |
| 64 </head> | 61 </head> |
| 65 <body> | 62 <body> |
| 66 <div class="composited box behind"></div> | 63 <div class="composited box behind"></div> |
| 67 <div class="box middle"></div> | 64 <div class="box middle"></div> |
| 68 <img id="repaintdiv" class="repaintdiv"></img> | 65 <img id="repaintdiv" class="repaintdiv"></img> |
| 69 <div class="box top"></div> | 66 <div class="box top"></div> |
| 70 </body> | 67 </body> |
| OLD | NEW |