<span id="target" class="float"></span></div>
</body>
<script>
test(() => {
  document.body.offsetTop;
  let target = document.getElementById('target');

  // Change `#target` from floating object to positioned object.
  target.className = 'abs';
  document.body.offsetTop;

  // and remove it.
  target.remove();
}, 'No crash or DCHECK failure');
</script>
