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

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

Issue 2148513002: Calculate border-box dimensions correctly for cells (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@619509-2
Patch Set: bug 627305 Created 4 years, 5 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
Index: third_party/WebKit/LayoutTests/fast/table/percent-height-content-in-fixed-height-content-box-sized-cell.html
diff --git a/third_party/WebKit/LayoutTests/fast/table/percent-height-content-in-fixed-height-content-box-sized-cell.html b/third_party/WebKit/LayoutTests/fast/table/percent-height-content-in-fixed-height-content-box-sized-cell.html
new file mode 100644
index 0000000000000000000000000000000000000000..1d3a3ba7684f43c29ee4c0a98df86c98ab11b399
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/percent-height-content-in-fixed-height-content-box-sized-cell.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<style>
+td {
+ width: 50px;
+ height: 50px;
+ padding: 0px;
+}
+#div {
+ height: 100%;
+}
+</style>
+<table style="border-collapse:collapse" id="table" data-expected-height=86 data-expected-width=86>
+ <tr style="border:18px solid lightblue" id="row">
+ <td><div id="div" style="background:black" data-expected-height=50 data-expected-width=50></div></td>
+ </tr>
+</table>
+<script src="../../resources/check-layout.js"></script>
+<p> crbug.com/627305: Percent height content in a content-box sized cell with a computed height should use the height of the cell. </p>
+<div id="output"></div>
+<script>
+checkLayout('#table', output);
+</script>

Powered by Google App Engine
This is Rietveld 408576698