Limit table cell width calculation quirk to images

This patch fixes a regression in r724125 crrev.com/c/1959907
which mistakenly applied the table cell width calculation
quirk[1] to all atomic inlines. It should apply only to
images.

[1] https://quirks.spec.whatwg.org/#the-table-cell-width-calculation-quirk

Bug: 1049401
Change-Id: Iddb25c26efef2379e85773880d33af6aea859e56
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2040793
Reviewed-by: Aleks Totic <atotic@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738859}
diff --git a/quirks/table-cell-width-calculation-applies-to.html b/quirks/table-cell-width-calculation-applies-to.html
new file mode 100644
index 0000000..d7cd7fd
--- /dev/null
+++ b/quirks/table-cell-width-calculation-applies-to.html
@@ -0,0 +1,18 @@
+<title>The table cell width calculation quirk should not apply to inline blocks</title>
+<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/resources/check-layout-th.js"></script>
+<style>
+inline-block {
+  display: inline-block;
+}
+</style>
+<body>
+  <table style="width:80px" data-expected-width=80>
+    <tr>
+      <td><inline-block style="width:50px">50</inline-block><inline-block style="width:50px">50</inline-block></td>
+    </tr>
+  </table>
+<script>checkLayout('table');</script>
+</body>