summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1169331-1-ref.html
blob: dce4740c608ee697ef0d8158df13ec96365e09c0 (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
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Rotated buffer with mask</title>

<style>

body {
  margin: 0;
}

.outer {
  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 = 199;

</script>