blob: 6c3624bb10f4069d694b9ad2bf1f3b8ac9783c3f [file] [log] [blame]
<style>
#target { color: green; margin-top: -100px; }
#target:before { display: table; content: "A"; }
#target:first-letter { font-size: 200%; }
</style>
<body style="font-family: ahem; -webkit-font-smoothing: none;">
<div style="font-size: 100px; color: red;">A</div>
<div id="target"></div>
<script>
document.body.offsetTop;
document.getElementById("target").style.fontSize = "50px";
</script>
</body>