Index: third_party/WebKit/LayoutTests/fast/table/containment-crash.html |
diff --git a/third_party/WebKit/LayoutTests/fast/table/containment.html b/third_party/WebKit/LayoutTests/fast/table/containment-crash.html |
similarity index 59% |
copy from third_party/WebKit/LayoutTests/fast/table/containment.html |
copy to third_party/WebKit/LayoutTests/fast/table/containment-crash.html |
index 1c40becb0a13e3a92fefa573f6e8d1fc893db20c..9c3f5ddc0319b2d7c9d0a285c641345891e7e326 100644 |
--- a/third_party/WebKit/LayoutTests/fast/table/containment.html |
+++ b/third_party/WebKit/LayoutTests/fast/table/containment-crash.html |
@@ -1,6 +1,6 @@ |
<!doctype html> |
<style> |
-body, table, tbody { |
+body, #tbody2 { |
contain: size layout; |
} |
</style> |
@@ -8,14 +8,15 @@ body, table, tbody { |
<script src="../../resources/run-after-layout-and-paint.js"></script> |
<script type="text/javascript"> |
function reparentRow() { |
- document.getElementById("table2").appendChild(document.getElementById("row")); |
- checkLayout("#table2"); |
+ document.getElementById("tbody2").appendChild(document.getElementById("row")); |
} |
runAfterLayoutAndPaint(reparentRow, true); |
</script> |
-<p>This shouldn't crash and there should be a green square.</p> |
+<p>This shouldn't crash.</p> |
<table> |
- <tr id="row"><td style="height:50px;width:50px;background:green" data-expected-width=16 data-expected-height=16></td></tr> |
+ <tr id="row"><td style="height:50px;width:50px;background:green"></td></tr> |
</table> |
-<table id="table2" style="height:20px;width:20px"> |
+<table style="height:20px;width:20px"> |
+ <tbody id="tbody2"> |
+ </tbody> |
</table> |