OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <style> | 3 <style> |
4 img { | 4 img { |
5 max-width: 100%; | 5 max-width: 100%; |
6 } | 6 } |
7 .relative { | 7 .relative { |
8 position: relative; | 8 position: relative; |
9 } | 9 } |
10 /* Not needed but helps to see the bug. */ | 10 /* Not needed but helps to see the bug. */ |
11 .paddingTop { | 11 .paddingTop { |
12 padding: 50px; | 12 padding: 50px; |
13 } | 13 } |
14 </style> | 14 </style> |
15 <script src="resources/text-based-repaint.js" type="text/javascript"></script> | 15 <script src="resources/text-based-repaint.js" type="text/javascript"></script> |
16 <script> | 16 <script> |
17 function repaintTest() | 17 function repaintTest() |
18 { | 18 { |
19 iframe.style.display = "none"; | 19 iframe.style.display = "none"; |
20 } | 20 } |
21 window.addEventListener("load", runRepaintTest, false); | 21 window.addEventListener("load", runRepaintAndPixelTest, false); |
22 </script> | 22 </script> |
23 <body> | 23 <body> |
24 <p><a href="https://code.google.com/p/chromium/issues/detail?id=353933">issu
e 353933</a>: Pages missing invalidations<br> | 24 <p><a href="https://code.google.com/p/chromium/issues/detail?id=353933">issu
e 353933</a>: Pages missing invalidations<br> |
25 The test checks that removing a renderer correctly invalidate the existi
ng shifted content. | 25 The test checks that removing a renderer correctly invalidate the existi
ng shifted content. |
26 The image should be correctly invalidated below.</p> | 26 The image should be correctly invalidated below.</p> |
27 <iframe id="iframe" width="728" height="90"></iframe> | 27 <iframe id="iframe" width="728" height="90"></iframe> |
28 <div class="relative"> | 28 <div class="relative"> |
29 <div class="relative paddingTop"> | 29 <div class="relative paddingTop"> |
30 <img src="resources/ducky.png"></img> | 30 <img src="resources/ducky.png"></img> |
31 </div> | 31 </div> |
32 </div> | 32 </div> |
33 </body> | 33 </body> |
34 </html> | 34 </html> |
OLD | NEW |