| Index: LayoutTests/fast/repaint/resources/repaint-with-scrollbar-change.html
|
| diff --git a/LayoutTests/fast/repaint/resources/repaint-with-scrollbar-change.html b/LayoutTests/fast/repaint/resources/repaint-with-scrollbar-change.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..10aa8c0639fd20cd26f7941129e4557a8aacfae2
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/repaint/resources/repaint-with-scrollbar-change.html
|
| @@ -0,0 +1,47 @@
|
| +<!DOCTYPE html>
|
| +<style>
|
| +#container {
|
| + height: 4000px;
|
| + background-color: red;
|
| +}
|
| +.noScroll {
|
| + overflow-y: hidden;
|
| +}
|
| +#overlay {
|
| + bottom: 0;
|
| + left: 0;
|
| + position: fixed;
|
| + right: 0;
|
| + top: 0;
|
| + background-color: green;
|
| +}
|
| +.hidden {
|
| + display: none;
|
| +}
|
| +input {
|
| + position: fixed;
|
| + z-index: 10;
|
| + bottom: 0;
|
| +}
|
| +</style>
|
| +<script src="../../../resources/run-after-display.js"></script>
|
| +<script src="text-based-repaint.js"></script>
|
| +<body>
|
| +<div id="container">
|
| + <div id="overlay" class="hidden"></div>
|
| +</div>
|
| +</body>
|
| +<script>
|
| +function repaintTest() {
|
| + var overlay = document.getElementById("overlay");
|
| + overlay.classList.toggle('hidden');
|
| + document.body.classList.toggle('noScroll');
|
| +}
|
| +
|
| +if (window.testRunner)
|
| + window.testRunner.waitUntilDone();
|
| +
|
| +window.scrollTo(0, 4000);
|
| +// window.setTimeout(doTest, 1000);
|
| +runAfterDisplay(runRepaintTest);
|
| +</script>
|
|
|