<script src="resources/text-based-repaint.js"></script>
<script>
    onload = runRepaintTest;

    function repaintTest()
    {
        document.getElementById("target").style.visibility = "hidden";
    }
</script>
<div style="height: 100px; width: 100px; background-color: red; -webkit-writing-mode: horizontal-bt;">
    <div style="display: table; width: 100px;">
        <div style="height: 25px;">
            <div style="height: 100px; background-color: green;"></div>
        </div>
    </div>
</div>
<div id="target" style="height: 50px; width: 100px; background-color: red; margin-top: -100px;"></div>
