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

Unified Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-adjustment-clipping-expected.html

Issue 499433003: Fix tap target consistency with link highlighting and hover/active (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix scrollbar case Created 6 years, 4 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/compositing/gestures/gesture-tapHighlight-adjustment-clipping-expected.html
diff --git a/LayoutTests/compositing/gestures/gesture-tapHighlight-adjustment-clipping-expected.html b/LayoutTests/compositing/gestures/gesture-tapHighlight-adjustment-clipping-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..dcfee4b1160796efd75b5b5a9b727d43b677714c
--- /dev/null
+++ b/LayoutTests/compositing/gestures/gesture-tapHighlight-adjustment-clipping-expected.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<script src="resources/link-highlight-helper.js"></script>
+<link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
+<style>
+#highlightTarget {
+ position: absolute;
+ height: 200px;
+ left: 50px;
+ top: 180px;
+ width: 20px;
+ background-color: red;
+}
+
+#clip {
+ position: absolute;
+ top: 200px;
+ left: 0;
+ width: 50px;
+ height: 150px;
+ overflow: hidden;
+}
+
+#fakeTarget {
+ width: 150px;
+ height: 150px;
+ background-color: lightblue;
+}
+
+</style>
+
+<div id=highlightTarget class=target></div>
+<div id=clip>
+ <div id=fakeTarget class=target></div>
+</div>
+
+<script>
+description('This test is successful if the red box is completely covered in a green rectangle with square corners.');
+createHighlight(highlightTarget);
+testRunner.dumpAsTextWithPixelResults();
+</script>

Powered by Google App Engine
This is Rietveld 408576698