summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-and-legend-elements/sticky-content-ref.html
blob: 95e3c05cd843fb3cf5c957730a00d236226e3822 (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
<!DOCTYPE html>
<body>
<style>
body {
  margin: 0;
}

.fieldset div {
  height:1000px;
}

span {
  background: lime;
  display: block;
  height: 40px;
  position: absolute;
  top: 4px;
  left: 0px;
  width: 40px;
}

.fieldset {
  border: none;
  height: 400px;
  margin: 0;
  overflow: scroll;
  padding: 0;
}
</style>
<div class="fieldset"><div><span></span></div></div>
<script>
document.querySelector('.fieldset').scrollTop = 1000;
</script>
</body>