<!doctype html>
<html>
<script>
     if (window.testRunner)
         testRunner.dumpAsText();
</script>
<style type="text/css">
    dt > p, dl > p { background-color: lime; outline: 1px solid lime; }
</style>
<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=16913">bug 16913</a>:
TR, TH, TD elements incorrectly closes DL list</p>
<p>There should be two green bars below.</p>

<dt><tr><p>test
<dl><tr><p>test
<script>
for (var i = 2; i <= 3; i++) {
    var x = document.getElementsByTagName("p")[i];

    if (document.defaultView.getComputedStyle(x, null).getPropertyValue("outline-style") == "solid")
        document.write("<div>PASSED.</div>");
    else
        document.write("<div>FAILED.</div>");
}
</script>
</html>
