<html>
    <head>
        <script>
            function test()
            {
                document.getElementsByTagName("iframe")[0].src = "";
                if (window.testRunner)
                    testRunner.dumpAsText();
            }
        </script>
    </head>
    <body id="body" onload="test()">
        This tests that we don't crash when using the CSS counters feature.
        <iframe src="data:text/html,
            <style>
                .control {
                    counter-reset: inline;
                    display: table;
                }
                * {
                    display: table-cell;
                }
                span {
                    counter-reset: inline;
                }
            </style>
            <div class='control'></div>
            <div>
                <span></span><span>
            </div>
            <span>
        "></iframe>
    </body>
</html>
