<!DOCTYPE html>
<style>
#absolute {
    position: absolute;
    background-color: red;
    text-transform: uppercase;
}
</style>
<script>
function load() {
    document.body.offsetHeight;
    document.getElementById("absolute").innerHTML = "test";
}
window.onload = load;
</script>
The text "TEST" should have a red background.
<div id="absolute"></div>
