Bug 1731994: part 4) Declare more methods around `ContentPermissionRequestBase` ...
[gecko.git] / layout / reftests / css-gradients / large-gradient-4.html
blobdc8f1510221cb7ae95fec36e75a8108297eb1619
1 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
4 -->
5 <!DOCTYPE html>
6 <html lang="en" class="reftest-wait">
7 <meta charset="utf-8">
8 <title>Make sure that large gradient backgrounds are painted even at extreme scroll positions</title>
9 <!-- See https://bugzilla.mozilla.org/show_bug.cgi?id=1011166 -->
11 <style>
13 html {
14 background: white;
15 overflow: hidden;
18 body {
19 margin: 0;
20 height: 204000px; /* = 255 * 800 */;
21 background-image: linear-gradient(black 0px, lime 2000px);
24 div {
25 height: 1000px;
26 background-color: red;
29 </style>
31 <div></div>
33 <script>
35 window.addEventListener("MozReftestInvalidate", function () {
36 document.documentElement.scrollTop = 210 * 800; // 168000 > 131072 == 2^17
37 document.documentElement.removeAttribute("class");
38 });
40 </script>