« Firefox keywords and Trac | Main | Firefox keywords (more) »

xhtml & ccs crashes IE6

It’s always fun to find another bug in IE6. This XHTML/CSS kills IE6 out right. It is cut down from a real project and had us amused for a while.

This seems to be the minimal set that causes the crash. The negative margin is required too.

We swapped the <p> for a <span> in the end.

<head>
<style>
#inner DIV {
        background: #cccccc;
        }
#outer P:first-letter {
        margin: -1px;
        }
</style>
</head>
<body>
<div id="outer">
        <div id="inner">
            <div>
                <p><a href="">ie6 breaks</a></p>
            </div>
        </div>
</div>
</body>
</html>

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)