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

Unified Diff: LayoutTests/fast/scroll-behavior/overflow-scroll-triggers-layout.html

Issue 1148003010: Force layout for main thread scrolling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 5 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
Index: LayoutTests/fast/scroll-behavior/overflow-scroll-triggers-layout.html
diff --git a/LayoutTests/fast/scroll-behavior/overflow-scroll-triggers-layout.html b/LayoutTests/fast/scroll-behavior/overflow-scroll-triggers-layout.html
new file mode 100644
index 0000000000000000000000000000000000000000..6ddff4bb11590f21d3871bacc2c1ff5a8ec2d66e
--- /dev/null
+++ b/LayoutTests/fast/scroll-behavior/overflow-scroll-triggers-layout.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<style>
+#inner {
+ background:red;
+ width:500px;
+ height:100%;
+}
+
+#outer {
+ width:300px;
+ height:500px;
+ overflow-y:scroll;
+ overflow-x:hidden;
+}
+</style>
+<div id="outer">
+ <div id="inner">
+ </div>
+</div>
+
+<script>
+description("Ensures that if layout is dirty, triggering a scroll causes a relayout");
+
+outer.addEventListener("wheel",
+ function(e) {
+ inner.style.height = "1000px";
+ }
+);
+
+var x = outer.offsetLeft + 5;
+var y = outer.offsetTop + 5;
+eventSender.mouseMoveTo(x, y);
+eventSender.mouseScrollBy(0, -1);
+shouldBeGreaterThan("outer.scrollTop", "0");
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698