<script src="../../resources/ahem.js"></script>
<style>
body { -webkit-font-smoothing: none; }
ruby { font-family: Ahem; font-size: 50px; color: blue; }
rt { font-size: 30px; color: orange; }
.float { height: 50px; width: 50px; float: left; background-color: lightblue; }
</style>
<div>
<ruby>aa<rt>a<div class="float"></div></rt></ruby>
</div>
<div>
<ruby>aa<rt id="target">a<div class="float"></div></rt></ruby>
</div>
<script>
document.body.offsetTop;
var target = document.getElementById("target");
target.parentNode.removeChild(target);
</script>