1 <html class=
"reftest-wait">
2 <meta name=
"viewport" content=
"width=device-width minimum-scale=0.5 initial-scale=1.0">
27 document
.addEventListener('MozReftestInvalidate', () => {
28 // The page here is twice as large as the ICB.
29 // If the layout viewport is sized to the ICB, we have a layout
30 // scroll range equal to the ICB size, and the scrollTo() call
31 // below will bring a green area into view.
32 // If the layout viewport is expanded to the whole page, we
33 // have an empty layout scroll range, and the scrollTo() call
34 // below will have no effect.
35 window
.scrollTo(window
.scrollMaxX
, window
.scrollMaxY
);
36 document
.documentElement
.classList
.remove('reftest-wait');