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