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

Unified Diff: third_party/WebKit/LayoutTests/fast/table/containment.html

Issue 2040463002: [css] Bandaid fix for crash when tables and containment mix. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/table/containment-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/table/containment.html
diff --git a/third_party/WebKit/LayoutTests/fast/table/containment.html b/third_party/WebKit/LayoutTests/fast/table/containment.html
new file mode 100644
index 0000000000000000000000000000000000000000..1c40becb0a13e3a92fefa573f6e8d1fc893db20c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/table/containment.html
@@ -0,0 +1,21 @@
+<!doctype html>
+<style>
+body, table, tbody {
+ contain: size layout;
+}
+</style>
+<script src="../../resources/check-layout.js"></script>
+<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");
+ }
+ runAfterLayoutAndPaint(reparentRow, true);
+</script>
+<p>This shouldn't crash and there should be a green square.</p>
+<table>
+ <tr id="row"><td style="height:50px;width:50px;background:green" data-expected-width=16 data-expected-height=16></td></tr>
+</table>
+<table id="table2" style="height:20px;width:20px">
+</table>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/table/containment-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698