Index: third_party/WebKit/LayoutTests/fast/table/percent-height-content-in-fixed-height-border-box-sized-cell-with-padding.html |
diff --git a/third_party/WebKit/LayoutTests/fast/table/percent-height-content-in-fixed-height-border-box-sized-cell-with-padding.html b/third_party/WebKit/LayoutTests/fast/table/percent-height-content-in-fixed-height-border-box-sized-cell-with-padding.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..40541ef886c299035da65010180d2e048c4f72d2 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/table/percent-height-content-in-fixed-height-border-box-sized-cell-with-padding.html |
@@ -0,0 +1,24 @@ |
+<!DOCTYPE html> |
+<style> |
+td { |
+ width: 50px; |
+ height: 50px; |
+ padding: 9px; |
+ box-sizing: border-box; |
+ border: 9px solid lightblue; |
+} |
+#div { |
+ height: 100%; |
+} |
+</style> |
+<table style="border-collapse:collapse" id="table" data-expected-height=59 data-expected-width=59> |
+ <tr id="row"> |
+ <td><div id="div" style="background:black" data-expected-height=23 data-expected-width=23></div></td> |
+ </tr> |
+</table> |
+<script src="../../resources/check-layout.js"></script> |
+<p> crbug.com/627305: Percent height content in a border-box sized cell with border and a computed height should use the height of the cell. </p> |
+<div id="output"></div> |
+<script> |
+checkLayout('#table', output); |
+</script> |