blob: 4c79ff23eadb8404645e6734cfc02c63f94a9c32 (
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
|
<!DOCTYPE html>
<html>
<head>
<style>
html {
overflow: hidden;
}
body {
overflow: hidden;
position: relative;
height: 0px;
margin: 0px;
}
div {
position: absolute;
}
</style>
</head>
<body>
<div>This checks that we don't wrongly propagate the body's overflow clip when we shouldn't.<br>This text should be visible in the output.</div>
<script>
document.body.offsetTop;
// This removes the body's overflow clip propagation, which should make the text above appear.
document.documentElement.style.overflow = "visible";
document.body.style.overflowY = "visible";
</script>
</body>
</html>
|