Index: third_party/WebKit/LayoutTests/fast/table/colspan-with-empty-cells-needing-extra-width.html |
diff --git a/third_party/WebKit/LayoutTests/fast/table/colspan-with-empty-cells-needing-extra-width.html b/third_party/WebKit/LayoutTests/fast/table/colspan-with-empty-cells-needing-extra-width.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6394913237789abac413487e169f38f2b9b430d1 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/table/colspan-with-empty-cells-needing-extra-width.html |
@@ -0,0 +1,23 @@ |
+<!DOCTYPE html> |
+<style> |
+table td { |
+ padding: 0; |
+} |
+</style> |
+<p>crbug.com/534830: Don't deduct the min-width of empty cells from the available table width. There should be no red. </p> |
+<table style="width: 400px; background-color: red; border-spacing: 0px;"> |
+ <tr> |
+ <td style="background-color:black; width: 10px; height:20px;"></td> |
+ <td style="background-color:blue;"></td> |
+ </tr> |
+ <tr> |
+ <td id="colspan" colspan="2" style="background-color:yellow;" data-expected-width=400> |
+ TestTestTest |
+ </td> |
+ </tr> |
+</table> |
+<div id="test-output"></div> |
+<script src="../../resources/check-layout.js"></script> |
+<script> |
+ window.checkLayout("#colspan", document.getElementById("test-output")); |
+</script> |