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

Unified Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2.html

Issue 402603005: Disable touch highlight when the touched node has no hand-cursor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added 2 new tests. Created 6 years, 5 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-nested-cursor2.html
diff --git a/LayoutTests/compositing/gestures/gesture-tapHighlight-simple-div-boxshadow-fixed-nested2.html b/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2.html
similarity index 63%
copy from LayoutTests/compositing/gestures/gesture-tapHighlight-simple-div-boxshadow-fixed-nested2.html
copy to LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2.html
index 5b96fdc32394990f19cc6290d1c7d9dbf99e4524..cf60d80986f12356b3d67ca97aa729d00bb178af 100644
--- a/LayoutTests/compositing/gestures/gesture-tapHighlight-simple-div-boxshadow-fixed-nested2.html
+++ b/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor2.html
@@ -2,19 +2,23 @@
<html>
<head>
<script src="../../resources/js-test.js"></script>
-<script src="resources/target-div-run-test.js"></script>
<link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
</head>
<body onload="runTest();">
-<div style="position: absolute; top: 10px; left: 10px; -webkit-transform: translateZ(0);">
-<div style="position: relative; top: 10px; left: 25px;">
-<div class="opaqueHighlight" id="targetDiv" style="position: fixed; left: 50px; top: 50px; width: 50px; height: 50px; box-shadow: 0px 4px 23px 5px rgba(0, 0, 0, 0.2); border-style: solid; border-width: 2px; cursor: Pointer">
-<br><center>Target</center><br>
+<div class="opaqueHighlight" id="targetDiv" style="position: fixed; top: 100px; left: 10px; width: 350px; height: 110px; border-style: solid; cursor: pointer; font-size: x-small">
+pointer
+<div style="position: fixed; top: 110px; left: 60px; width: 250px; height: 90px; border-style: solid;">
+none
+<div style="position: fixed; top: 120px; left: 110px; width: 150px; height: 70px; border-style: solid; cursor: pointer;">
+pointer
+<div style="position: fixed; top: 130px; left: 160px; width: 50px; height: 50px; border-style: solid;">
+none
+</div>
</div>
</div>
</div>
<div style="position: absolute; left: 10px; top: 250px; -webkit-transform: translateZ(0);">
-This test is successful if the box labelled "Target" has a green rectangle centered on it.
+This test is successful if the outermost box above is covered with a green rectangle.
</div>
<script>
function runTest() {
@@ -34,6 +38,5 @@ function runTest() {
}
}
</script>
-</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698