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

Unified Diff: LayoutTests/fast/overflow/overflow-dirty-relayout-boundary-no-crash.html

Issue 255433003: RenderBlock::isSelfCollapsingBlock() should early exit on a relayout boundary (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add test Created 6 years, 8 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 | LayoutTests/fast/overflow/overflow-dirty-relayout-boundary-no-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/overflow/overflow-dirty-relayout-boundary-no-crash.html
diff --git a/LayoutTests/fast/overflow/overflow-dirty-relayout-boundary-no-crash.html b/LayoutTests/fast/overflow/overflow-dirty-relayout-boundary-no-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..847fb5e3916fb77df11565ed88d8544ca1028188
--- /dev/null
+++ b/LayoutTests/fast/overflow/overflow-dirty-relayout-boundary-no-crash.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<style>
+#relayout-boundary {
+ transform: translateX(0);
+ overflow: hidden;
+ width: 100px;
+ height: 100px;
+}
+</style>
+<div id="relayout-boundary">
+ <div id="layout-target">
+ This test queries layout overflow for propagation on a relayout boundary that has dirty layout.
+ It should not trigger assertions that assume clean layout.
+ </div>
+</div>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+document.body.scrollWidth;
+
+var layoutTarget = document.getElementById("layout-target");
+layoutTarget.style.width = "99px";
+
+var relayoutBoundary = document.getElementById("relayout-boundary");
+relayoutBoundary.style.transform = "translateX(1px)";
+
+document.body.scrollWidth;
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/overflow/overflow-dirty-relayout-boundary-no-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698