author Kashav Madan <>
Fri, 20 Jul 2018 17:48:30 -0400
changeset 487399 ca7f6311613cbf7dd2a5151fed6deba9c4141543
permissions -rw-r--r--
Bug 1465616 - Add async-scroll reftests. r=botond The first set of tests test that fixed/sticky position elements are no longer attached to the visual viewport (i.e., that they go "out of view" when the visual viewport is scrolled) and the second set of tests test that fixed/sticky position elements are attached to the layout viewport (i.e., that they "follow" the layout viewport when it's scrolled). MozReview-Commit-ID: 6H2f0oz9lW7

<!DOCTYPE html>
<html reftest-async-scroll
      reftest-displayport-x="0" reftest-displayport-y="0"
      reftest-displayport-w="800" reftest-displayport-h="1000"
      reftest-async-scroll-x="0" reftest-async-scroll-y="50"
    body {
      height: 3000px;
      margin: 0;
      overflow: hidden;
    div {
      position: sticky;
      top: 0;
      width: 100px;
      height: 100px;
      background: green;
  <!-- This test is identical to the position-fixed-async-zoom-1 test, but for
       position:sticky elements. -->