OLD | NEW |
| (Empty) |
1 <!-- Based on fast/repaint/invalidate-paint-in-iframe-in-composited-layer.html -
-> | |
2 <!DOCTYPE html> | |
3 <html> | |
4 <head> | |
5 <script src="resources/paint-invalidation-test.js"></script> | |
6 <script> | |
7 window.onload = function() { | |
8 runPaintInvalidationTest(); | |
9 }; | |
10 | |
11 function paintInvalidationTest() { | |
12 document.getElementsByTagName('iframe')[0] | |
13 .contentDocument | |
14 .getElementsByTagName('div')[0] | |
15 .style | |
16 .backgroundColor = 'green'; | |
17 } | |
18 </script> | |
19 </head> | |
20 <div style="height: 400px"></div> | |
21 <div style="height: 200px; width: 200px; transform: translateZ(0)"> | |
22 <iframe srcdoc="<div style='height: 50px; width: 50px; background-color: red
;'></div>"></iframe> | |
23 </div> | |
OLD | NEW |