<!DOCTYPE html>
<style>
    .spanner { -webkit-column-span:all; }
</style>
<body style="margin:0;">
    <p>PASS if no crash or assertion failure.</p>
    <div style="-webkit-column-count:4;">
        <svg><foreignObject class="spanner"></foreignObject></svg><div id="a" class="spanner">a</div><span id="b">b</span><div class="spanner"></div>
    </div>
    <script>
        if (window.testRunner)
            testRunner.dumpAsText();
        onload = function() {
            document.body.offsetTop;
            document.getElementById('a').style.display = 'none';
            document.body.offsetTop;
            document.getElementById('b').style.display = 'none';
        }
    </script>
</body>
