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

Unified Diff: LayoutTests/fast/events/touch/compositor-touch-hit-rects-non-composited-scroll.html

Issue 148423004: Only report bounding box touch hit rect for non-composited scroll layers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update test description Created 6 years, 11 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/events/touch/compositor-touch-hit-rects-non-composited-scroll.html
diff --git a/LayoutTests/fast/events/touch/compositor-touch-hit-rects-non-composited-scroll.html b/LayoutTests/fast/events/touch/compositor-touch-hit-rects-non-composited-scroll.html
new file mode 100644
index 0000000000000000000000000000000000000000..88c49c384c0284c7875167d545b27b3a5e9fc057
--- /dev/null
+++ b/LayoutTests/fast/events/touch/compositor-touch-hit-rects-non-composited-scroll.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="resources/compositor-touch-hit-rects.css">
+<style>
+.scroll {
+ overflow-y: scroll;
+ /* Make this just big enough for clipping to occur so we can verify the
+ hit rect is also clipped. */
+ height: 23px;
+ border: 1px solid lightgrey;
+}
+</style>
+</head>
+<body>
+<p id="description">
+This test verifies the hit test regions given to the compositor specifically around non-composited
+overflow scroll elements.
+</p>
+
+<div id="tests">
+ <div class="scroll" id="scrollContainer">
+ <div style='height: 13px;'></div>
+ <div class="testcase" id="scrollContent">Scroll content</div>
+ <div style='height: 50px;'></div>
+ </div>
+
+ <div class="scroll testcase" id="scrollContainerWithHandler">
+ <div style='height: 13px;'></div>
+ <div>Scroll content</div>
+ <div style='height: 50px;'></div>
+ </div>
+</div>
+
+<div id="console"></div>
+<div style="height: 1000px;"></div>
+<script src="resources/compositor-touch-hit-rects.js"></script>
+<script>
+// Make fixed-position cases slightly more interesting
+window.scrollTo(0, 13);
+
+if (window.internals) {
+ window.internals.settings.setAcceleratedCompositingForOverflowScrollEnabled(false);
+}
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698