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