Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Unified Diff: third_party/WebKit/LayoutTests/fast/table/percent-height-replaced-content-in-cell.html

Issue 2851513004: Ensure cell's replaced content doesn't get the wrong width (Closed)
Patch Set: bug 666730 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutTableCell.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/table/percent-height-replaced-content-in-cell.html
diff --git a/third_party/WebKit/LayoutTests/fast/table/percent-height-replaced-content-in-cell.html b/third_party/WebKit/LayoutTests/fast/table/percent-height-replaced-content-in-cell.html
index dcaeb472b96f0f55b92a75b71e300f7618f0e244..1d6aadbcac3e26dff5457c39dd502664d5cb6656 100644
--- a/third_party/WebKit/LayoutTests/fast/table/percent-height-replaced-content-in-cell.html
+++ b/third_party/WebKit/LayoutTests/fast/table/percent-height-replaced-content-in-cell.html
@@ -9,13 +9,18 @@ img {
</style>
<table class="test" data-expected-height=100 data-expected-width=82>
<tr>
- <td class="test" data-expected-height=96 data-expected-width=78><img src="../../images/resources/border-image-srgb-color-profile.png"></td>
+ <td class="test" data-expected-height=96 data-expected-width=78><img class="test" data-expected-height=94 data-expected-width=94 id="img"></td>
</tr>
</table>
<script src="../../resources/check-layout.js"></script>
-<p> crbug.com/637811: Percent height replaced content in a cell should flex the height of the cell. </p>
+<p> crbug.com/637811: Percent height replaced content in a cell should not flex the height or width of the cell. </p>
<div id="output"></div>
<script>
document.body.offsetTop;
-checkLayout('.test', output);
+img.addEventListener("load", onImageLoaded, false);
+img.src = "../../images/resources/border-image-srgb-color-profile.png";
+function onImageLoaded()
+{
+ checkLayout('.test', output);
+}
</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutTableCell.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698