Chromium Code Reviews| 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..d692a4607b16a5624d110afb285d727050c26a10 |
| --- /dev/null |
| +++ b/LayoutTests/fast/scroll-behavior/overflow-scroll-triggers-layout.html |
| @@ -0,0 +1,45 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
|
Rick Byers
2015/06/04 17:57:00
nit: coding style says to omit unnecessary tags li
tdresser
2015/06/04 19:37:37
Done.
|
| +<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> |
| +</head> |
| +<body> |
| + |
| +<div id="outer"> |
| +<div id="inner"> |
|
Rick Byers
2015/06/04 17:57:00
nit: indentation would help make this html clearer
tdresser
2015/06/04 19:37:37
Done.
|
| +</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> |
| + |
| +</body> |
| +</html> |