summaryrefslogtreecommitdiffstats
path: root/gfx/layers/apz/test/reftest/pinch-zoom-position-fixed.html
blob: c4476f487249a73d050ea8e61708e8180c59e07c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html class="reftest-wait" reftest-resolution="1.5">
<head>
  <meta name="viewport" content="width=device-width">
  <style>
    body {
      margin: 0;
      height: 2000px;
      overflow: hidden;
    }
    div {
      position: fixed;
      bottom: 0;
      width: 100%;
      height: 500px;
      background: repeating-linear-gradient(90deg, transparent, transparent 20px, black 20px, black 40px);
    }
  </style>
</head>
<body onload="scrollTo(0, 500); document.documentElement.classList.remove('reftest-wait');">
  <!-- Test that fixed position elements are attached to the layout viewport
       instead of the visual viewport.

       The reference page has a position:absolute element in place of a
       position:fixed element, both positioned at the bottom of the page.

       After zooming in, the top edge of the visual viewport will coincide with
       the top edge of the layout viewport, but their bottom edges will
       diverge.

       Since absolute elements are attached to the initial containing block,
       which coincides with the layout viewport on page load, the rendering of
       the fixed element will only match if it is being attached to the layout
       viewport. -->
  <div></div>
</body>
</html>