Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/printing/fixed-positioned-scrolled.html |
| diff --git a/third_party/WebKit/LayoutTests/printing/fixed-positioned-scrolled.html b/third_party/WebKit/LayoutTests/printing/fixed-positioned-scrolled.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f087a2550efa64f6b5b60887264855c44409c8bb |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/printing/fixed-positioned-scrolled.html |
| @@ -0,0 +1,104 @@ |
| +<!DOCTYPE html> |
| +<style> |
| +#myheader |
| +{ |
| + position: fixed; |
| + top: 20px; |
| +} |
| +</style> |
| +<script> |
| +function runTest() |
| +{ |
| + // Turn off smooth scrolling to prevent multiple scroll events from |
| + // being triggered. The iframe loaded below expects a single scroll |
| + // event, after which it runs the repaint test. |
| + internals.settings.setScrollAnimatorEnabled(false); |
| + if (window.eventSender) { |
| + window.eventSender.keyDown("PageDown"); |
|
Xianzhu
2016/10/06 22:40:42
I think you can use window.scrollBy() to replace l
|
| + } |
| + if (window.testRunner) |
| + testRunner.setPrinting(); |
| +} |
| +</script> |
| +<body onload="runTest()"> |
| + <div id="myheader"> |
| + <div align="center"> |
| + crbug.com/652449: Fixed-position object should be repeated on each page and positioned relative to top of page even when scrolled. |
| + <hr/> |
| + </div> |
| + </div> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| + <p>Filler lines</p> |
| +</body> |