OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <script src="resources/paint-invalidation-test.js"></script> | |
3 <script> | |
4 function paintInvalidationTest() { | |
5 document.getElementById('overflow1').style.overflow = "visible"; | |
6 document.getElementById('overflow2').style.overflow = "hidden"; | |
7 } | |
8 onload = runPaintInvalidationTest; | |
9 </script> | |
10 <style> | |
11 body { | |
12 margin: 0; | |
13 } | |
14 #overflow1 { | |
15 overflow: hidden; | |
16 width: 200px; | |
17 height: 200px; | |
18 } | |
19 #overflow2 { | |
20 overflow: visible; | |
21 width: 200px; | |
22 height: 200px; | |
23 } | |
24 .composited-child { | |
25 width: 100px; | |
26 height: 100px; | |
27 background-color: green; | |
28 backface-visibility: hidden; | |
29 } | |
30 .overflow-child { | |
31 position: relative; | |
32 top: 50px; | |
33 left: 150px; | |
34 } | |
35 </style> | |
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). --> | |
38 <div id="overflow1"> | |
39 <div class="composited-child"></div> | |
40 <div class="composited-child overflow-child"></div> | |
41 </div> | |
42 <div id="overflow2"> | |
43 <div class="composited-child"></div> | |
44 <div class="composited-child overflow-child"></div> | |
45 </div> | |
OLD | NEW |