summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-scrollbars/scrollbar-thin-overflow-change.html
blob: a46d95d39873211a696ab4032bc7348a50eae025 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<style>
#outer {
  scrollbar-width: thin;
  overflow: auto;
  border: 5px solid black;
  background: black;
  width: 200px;
  height: 400px;
}
#inner {
  height: 300px;
}
</style>
<div id="outer">
  <div id="inner"></div>
</div>
<script>
// Force a reflow
document.body.offsetHeight;
document.getElementById('outer').style.height = '200px';
</script>