blob: 382a4f8b898b4582b519f4b0e782c6a635cdec38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<!DOCTYPE html>
<html>
<head>
<script>
window.onload = function() {
document.body.offsetWidth;
document.getElementById("foo").style.top = "200px";
};
</script>
</head>
<body><div style="display: table-row" id="foo"><div style="position: relative; top: inherit">This text should be 200px from the top of the body</div></body>
</html>
|