| 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>
|
|
|