title: img with {display: table-cell} -- is it a bug?
body: <p>I want to use the <code>display: table-*</code> CSS properties to format a list of photos. I believe that below is a "correct" implementation of it, in that there's nothing theoretically wrong with it, but it displays in Firefox and Safari with the table layout screwed up, as you can see by the borders. For a comparison, try wrapping both img tags below in a <code>&lt;div&gt;&lt;/div&gt;</code>; this displays properly.</p>
  
  <p>This is something specific to the img tag, perhaps how big it thinks it is versus how much space it actually takes. Is this a bug?</p>
  
  <p>The code below is a minimal provocation of this problem.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;style&gt;
              .photos {display: table; border-collapse: collapse;}
              .photos &gt; div {display: table-row}
              .photos &gt; div &gt; * {
                  display: table-cell;
                  vertical-align: top;
                  border: 1px solid #000;
                  padding: 10px;
              }
          &lt;/style&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="photos"&gt;
              &lt;div&gt;
                  &lt;p&gt;Hello World&lt;/p&gt;
                  &lt;img src="http://www.freeimages.co.uk/galleries/nature/weather/thumbs/frost_oak_leaf_winter_218310.jpg" /&gt;
              &lt;/div&gt;
              &lt;div&gt;
                  &lt;p&gt;Hello World&lt;/p&gt;
                  &lt;img src="http://www.freeimages.co.uk/galleries/nature/weather/thumbs/frost_oak_leaf_winter_218310.jpg" /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>