| 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/repaint.js"></script> |
| 3 <script> | 3 <script> |
| 4 function repaintTest() { | 4 function repaintTest() { |
| 5 document.getElementById('overflow1').style.overflow = "visible"; | 5 document.getElementById('overflow1').style.overflow = "visible"; |
| 6 document.getElementById('overflow2').style.overflow = "hidden"; | 6 document.getElementById('overflow2').style.overflow = "hidden"; |
| 7 } | 7 } |
| 8 onload = runRepaintAndPixelTest; | 8 onload = runRepaintTest; |
| 9 </script> | 9 </script> |
| 10 <style> | 10 <style> |
| 11 body { | 11 body { |
| 12 margin: 0; | 12 margin: 0; |
| 13 } | 13 } |
| 14 #overflow1 { | 14 #overflow1 { |
| 15 overflow: hidden; | 15 overflow: hidden; |
| 16 width: 200px; | 16 width: 200px; |
| 17 height: 200px; | 17 height: 200px; |
| 18 } | 18 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 36 <!-- We should not repaint composited descendants on overflow style changes (ver
ified with the text expectation). | 36 <!-- We should not repaint composited descendants on overflow style changes (ver
ified with the text expectation). |
| 37 The compositor should handle any visual change caused by the change of overflow
clipping (verified with the pixel expectation). --> | 37 The compositor should handle any visual change caused by the change of overflow
clipping (verified with the pixel expectation). --> |
| 38 <div id="overflow1"> | 38 <div id="overflow1"> |
| 39 <div class="composited-child"></div> | 39 <div class="composited-child"></div> |
| 40 <div class="composited-child overflow-child"></div> | 40 <div class="composited-child overflow-child"></div> |
| 41 </div> | 41 </div> |
| 42 <div id="overflow2"> | 42 <div id="overflow2"> |
| 43 <div class="composited-child"></div> | 43 <div class="composited-child"></div> |
| 44 <div class="composited-child overflow-child"></div> | 44 <div class="composited-child overflow-child"></div> |
| 45 </div> | 45 </div> |
| OLD | NEW |