OLD | NEW |
| (Empty) |
1 <!-- Based on compositing/repaint/should-not-repaint-composited-descendants.html
--> | |
2 <!DOCTYPE html> | |
3 <style> | |
4 #composited-box { | |
5 backface-visibility: hidden; | |
6 position: absolute; | |
7 background-color: green; | |
8 clip: rect(40px, 110px, 110px, 40px); | |
9 } | |
10 .child { | |
11 width: 50px; | |
12 height: 50px; | |
13 background-color: green; | |
14 } | |
15 .composited { | |
16 backface-visibility: hidden; | |
17 } | |
18 </style> | |
19 <script src="resources/paint-invalidation-test.js"></script> | |
20 <script> | |
21 if (window.testRunner) | |
22 testRunner.dumpAsText(); | |
23 function paintInvalidationTest() { | |
24 // This will cause a full layer repaint, but should not include the composit
ed child. | |
25 document.getElementById('composited-box').style.clip = 'rect(30px, 120px, 12
0px, 30px)'; | |
26 } | |
27 window.onload = runPaintInvalidationTest; | |
28 </script> | |
29 <div id="composited-box"> | |
30 <div class="child"></div> | |
31 <div class="composited child"></div> | |
32 </div> | |
OLD | NEW |