| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="resources/text-based-repaint.js"></script> | 4 <script src="resources/text-based-repaint.js"></script> |
| 5 <script> | 5 <script> |
| 6 window.onload = function() { | 6 window.onload = function() { |
| 7 runRepaintAndPixelTest(); | 7 runRepaintAndPixelTest(); |
| 8 }; | 8 }; |
| 9 | 9 |
| 10 function repaintTest() { | 10 function repaintTest() { |
| 11 document.getElementsByTagName('iframe')[0] | 11 document.getElementsByTagName('iframe')[0] |
| 12 .contentDocument | 12 .contentDocument |
| 13 .getElementsByTagName('div')[0] | 13 .getElementsByTagName('div')[0] |
| 14 .style | 14 .style |
| 15 .backgroundColor = 'green'; | 15 .backgroundColor = 'green'; |
| 16 } | 16 } |
| 17 </script> | 17 </script> |
| 18 </head> | 18 </head> |
| 19 <div style="height: 400px"></div> | 19 <div style="height: 400px"></div> |
| 20 <iframe srcdoc="<div style='position: fixed; height: 50px; width: 50px; backgrou
nd-color: red;'></div>"></iframe> | 20 <iframe srcdoc="<div style='position: fixed; height: 50px; width: 50px; backgrou
nd-color: red;'></div>"></iframe> |
| OLD | NEW |