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

Unified Diff: third_party/WebKit/LayoutTests/scrollbars/overflow-auto-infinite-loop.html

Issue 2345103002: Freeze scrollbars for relayout if overflow:auto added scrollbars. (Closed)
Patch Set: Created 4 years, 3 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/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/scrollbars/overflow-auto-infinite-loop.html
diff --git a/third_party/WebKit/LayoutTests/scrollbars/overflow-auto-infinite-loop.html b/third_party/WebKit/LayoutTests/scrollbars/overflow-auto-infinite-loop.html
new file mode 100644
index 0000000000000000000000000000000000000000..b1a1587e41421a34f8c519b2c1caa241839ac284
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/scrollbars/overflow-auto-infinite-loop.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<title>Make sure preferred width calculations stabilize when a child has overflow:auto</title>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<div style="height: 100%; position: absolute;">
+ <div style="display:flex; height: 100%;">
+ <div>
+ <div style="display: flex; flex-direction: column; height: 100%;">
+ <p>test</p>
+ <div id="content" style="flex: auto; position: relative; overflow: auto;">
+ <p style="position: absolute;">test</p>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+<script>
+test(function() {
+ document.getElementById('content').offsetTop;
+}, "Hooray, no infinite loop.");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698