OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="resources/paint-invalidation-test.js"></script> | 2 <script src="resources/paint-invalidation-test.js"></script> |
3 <script> | 3 <script> |
4 window.expectedPaintInvalidationObjects = [ | 4 if (window.testRunner) |
5 "LayoutBlockFlow DIV id='overflow1'", | 5 testRunner.dumpAsText(); |
6 "LayoutBlockFlow DIV id='overflow2'", | |
7 ]; | |
8 function paintInvalidationTest() { | 6 function paintInvalidationTest() { |
9 document.getElementById('overflow1').style.overflow = "visible"; | 7 document.getElementById('overflow1').style.overflow = "visible"; |
10 document.getElementById('overflow2').style.overflow = "hidden"; | 8 document.getElementById('overflow2').style.overflow = "hidden"; |
11 } | 9 } |
12 onload = runPaintInvalidationTest; | 10 onload = runPaintInvalidationTest; |
13 </script> | 11 </script> |
14 <style> | 12 <style> |
15 body { | 13 body { |
16 margin: 0; | 14 margin: 0; |
17 } | 15 } |
(...skipping 22 matching lines...) Expand all Loading... |
40 <!-- We should not repaint composited descendants on overflow style changes (ver
ified with the text expectation). | 38 <!-- We should not repaint composited descendants on overflow style changes (ver
ified with the text expectation). |
41 The compositor should handle any visual change caused by the change of overflow
clipping (verified with the pixel expectation). --> | 39 The compositor should handle any visual change caused by the change of overflow
clipping (verified with the pixel expectation). --> |
42 <div id="overflow1"> | 40 <div id="overflow1"> |
43 <div class="composited-child"></div> | 41 <div class="composited-child"></div> |
44 <div class="composited-child overflow-child"></div> | 42 <div class="composited-child overflow-child"></div> |
45 </div> | 43 </div> |
46 <div id="overflow2"> | 44 <div id="overflow2"> |
47 <div class="composited-child"></div> | 45 <div class="composited-child"></div> |
48 <div class="composited-child overflow-child"></div> | 46 <div class="composited-child overflow-child"></div> |
49 </div> | 47 </div> |
OLD | NEW |