<html>
<style>
    body { direction: rtl; padding-left: 100%; }
</style>
<body>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    function runTest() {
        document.body.innerHTML = "PASS";
    }

    window.onload = runTest;
</script>
0<image>
<span>
A<div></div>
</span>
</html>
