summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1169331-1.html
blob: 319091ffbb4d4575a200a1206c23024fb59ae29e (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html lang="en" class="reftest-wait">
<meta charset="utf-8">
<title>Rotated buffer with mask</title>

<style>

body {
  margin: 0;
}

.outer {
  overflow: hidden;
  border-radius: 10px;
  padding: 50px;
}

.scrollbox {
  width: 200px;
  height: 200px;
  overflow: auto;
}

.scrolled {
  box-sizing: border-box;
  border: 1px solid transparent;
  height: 200px;
}

</style>

<div class="outer">

  <div class="scrollbox">
    <div class="scrolled" style="background-color: blue;"></div>
    <div class="scrolled" style="background-color: lime;"></div>
  </div>

</div>

<script>

var scrollbox = document.querySelector(".scrollbox");

scrollbox.scrollTop = 1;
scrollbox.scrollTop = 0;

window.addEventListener("MozReftestInvalidate", function (e) {
  scrollbox.scrollTop = 199;
  document.documentElement.removeAttribute("class");
});

</script>