Index: third_party/WebKit/LayoutTests/fast/table/zero-width-on-table-is-auto.html |
diff --git a/third_party/WebKit/LayoutTests/fast/table/zero-width-on-table-is-auto.html b/third_party/WebKit/LayoutTests/fast/table/zero-width-on-table-is-auto.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c2862ae0567e2fe61d218478d3d2b029ba41cc38 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/table/zero-width-on-table-is-auto.html |
@@ -0,0 +1,26 @@ |
+<!DOCTYPE html> |
+<style> |
+td { padding: 0px; } |
+table { border-spacing: 0px; } |
+.yellow { background-color: yellow; } |
+.red { background-color: red; } |
+.green { background-color: green; } |
+</style> |
+</head> |
+<table id="outerTable" style="width:0px;" class="yellow" data-expected-width="200"> |
+ <tr> |
+ <td> |
+ <table class="red"> |
+ <tr> |
+ <td style="width:50%;"> |
+ <div style="width:200px;height:20px" class="green"></div> |
+ </td> |
+ </tr> |
+ </table> |
+ </td> |
+ </tr> |
+</table> |
+<script src="../../resources/check-layout.js"></script> |
+<script> |
+checkLayout('#outerTable'); |
+</script> |