| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>Only the green part of the div should be visible</title> |
| <style> |
| body { |
| height: 2000px; |
| background-image: repeating-linear-gradient(white, silver 200px); |
| margin: 0px; |
| } |
| |
| .box { |
| width: 200px; |
| height: 200px; |
| background-image: linear-gradient(0deg, green 50%, red 50%); |
| } |
| </style> |
| <script src="../../resources/ui-helper.js"></script> |
| <script> |
| if (window.testRunner) |
| testRunner.waitUntilDone(); |
| |
| async function doTest() |
| { |
| window.scrollBy(0, 100); |
| |
| await UIHelper.ensurePresentationUpdate(); |
| testRunner.notifyDone(); |
| } |
| |
| window.addEventListener('load', doTest, false); |
| </script> |
| </head> |
| <body> |
| <div class="box"></div> |
| </body> |
| </html> |