blob: 0cbad748c3f49fc239c10f904e7366ca7d41b7df [file] [log] [blame]
<!DOCTYPE html>
<style>
#inner {
position: absolute
}
</style>
<p>You should see the a green 'PASS' below.</p>
<span id="outer">&nbsp;<br>PASS<span id="inner"></span></span>
<script>
window.onload = function() {
var style = document.getElementById("outer").style;
document.body.offsetTop;
style.position = "relative";
document.body.offsetTop;
style.color = "green";
}
</script>