Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<span style="position: relative;">
<div id="target" style="position: absolute; left: 0; top: 0; width: 10px; height: 10px; overflow: hidden;"></div>
</span>
<script>
document.body.offsetTop;
document.getElementById('target').textContent = 'kaboom';
</script>