Mozilla's DOCTYPE sniffing (Almost Standards Mode)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

.test1, .test2 { width: 200px; background-color: aqua; border: 1px solid red; }
        .test2 { line-height: 0 }

□■

<p class="test1"><img /><img /></p>

□■

<p class="test2"><img /><img /></p>

□■
<table>
    <tr>
        <td class="test1"><img /><img /></td>
    </tr>
</table>

□■
<table>
    <tr>
        <td class="test2"><img /><img /></td>
    </tr>
</table>