| OLD | NEW |
| 1 <!-- Based on compositing/squashing/squash-partial-repaint-inside-squashed-layer
.html --> |
| 1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 2 <head> | 3 <head> |
| 3 <style> | 4 <style> |
| 4 .composited { | 5 .composited { |
| 5 transform: translatez(0); | 6 transform: translatez(0); |
| 6 } | 7 } |
| 7 | 8 |
| 8 .box { | 9 .box { |
| 9 width: 100px; | 10 width: 100px; |
| 10 height: 100px; | 11 height: 100px; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 left: 340px; | 44 left: 340px; |
| 44 background-color: cyan; | 45 background-color: cyan; |
| 45 } | 46 } |
| 46 | 47 |
| 47 div:hover { | 48 div:hover { |
| 48 background-color: green; | 49 background-color: green; |
| 49 transform:translatez(0); | 50 transform:translatez(0); |
| 50 } | 51 } |
| 51 | 52 |
| 52 </style> | 53 </style> |
| 53 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 54 <script src="resources/paint-invalidation-test.js"></script> |
| 54 <script> | 55 <script> |
| 55 function repaintTest() | 56 window.expectedPaintInvalidationObjects = [ |
| 57 "LayoutImage (positioned) IMG id='repaintdiv' class='repaintdiv'", |
| 58 ]; |
| 59 function paintInvalidationTest() |
| 56 { | 60 { |
| 57 document.getElementById('repaintdiv').style.background = 'salmon'; | 61 document.getElementById('repaintdiv').style.background = 'salmon'; |
| 58 } | 62 } |
| 59 runRepaintTest(); | 63 runPaintInvalidationTest(); |
| 60 </script> | 64 </script> |
| 61 </head> | 65 </head> |
| 62 <body> | 66 <body> |
| 63 <div class="composited box behind"></div> | 67 <div class="composited box behind"></div> |
| 64 <div class="box middle"></div> | 68 <div class="box middle"></div> |
| 65 <img id="repaintdiv" class="repaintdiv"></img> | 69 <img id="repaintdiv" class="repaintdiv"></img> |
| 66 <div class="box top"></div> | 70 <div class="box top"></div> |
| 67 </body> | 71 </body> |
| OLD | NEW |