summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/mathml/relations/css-styling/out-of-flow/fixed-positioned-001-ref.html
blob: 03b9f56698461af51153faadaffd1031ff55586c (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
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<meta charset="utf-8"/>
<title>Fixed positioned (reference)</title>
<style>
  body { overflow: hidden; }
</style>
<body>
  <div style="position: absolute; left: 100px; top: 200px;
              height: 3000px; width: 3000px;">
    <math>
      <mrow>
        <mspace width="100px" height="300px" style="background: green"/>
        <mspace width="100px" height="300px" style="background: green"/>
        <mspace width="100px" height="300px" style="background: green"/>
      </mrow>
    </math>
    <p>Test passes if you see a green square and no red.</p>
  </div>
  <script>
    requestAnimationFrame(() => {
      window.scrollTo(50, 100);
      document.documentElement.classList.remove("reftest-wait");
    });
  </script>
</body>
</html>