OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <script src="resources/paint-invalidation-test.js"></script> | |
3 <script> | |
4 if (window.testRunner) | |
5 testRunner.dumpAsText(); | |
6 function paintInvalidationTest() { | |
7 document.getElementById('overflow1').style.overflow = "visible"; | |
8 document.getElementById('overflow2').style.overflow = "hidden"; | |
9 } | |
10 onload = runPaintInvalidationTest; | |
11 </script> | |
12 <style> | |
13 body { | |
14 margin: 0; | |
15 } | |
16 #overflow1 { | |
17 overflow: hidden; | |
18 width: 200px; | |
19 height: 200px; | |
20 } | |
21 #overflow2 { | |
22 overflow: visible; | |
23 width: 200px; | |
24 height: 200px; | |
25 } | |
26 .composited-child { | |
27 width: 100px; | |
28 height: 100px; | |
29 background-color: green; | |
30 backface-visibility: hidden; | |
31 } | |
32 .overflow-child { | |
33 position: relative; | |
34 top: 50px; | |
35 left: 150px; | |
36 } | |
37 </style> | |
38 <!-- We should not repaint composited descendants on overflow style changes (ver
ified with the text expectation). | |
39 The compositor should handle any visual change caused by the change of overflow
clipping (verified with the pixel expectation). --> | |
40 <div id="overflow1"> | |
41 <div class="composited-child"></div> | |
42 <div class="composited-child overflow-child"></div> | |
43 </div> | |
44 <div id="overflow2"> | |
45 <div class="composited-child"></div> | |
46 <div class="composited-child overflow-child"></div> | |
47 </div> | |
OLD | NEW |