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

Unified Diff: content/test/data/touch_selection.html

Issue 1740193002: Fix the coordinates for touch selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/touch_selection.html
diff --git a/content/test/data/touch_selection.html b/content/test/data/touch_selection.html
index dc8ab062763a99cab39d7b9e6b59ed41ce04646c..7c5a1b775ea669d6f4948930e0a0b3bd65795074 100644
--- a/content/test/data/touch_selection.html
+++ b/content/test/data/touch_selection.html
@@ -1,6 +1,17 @@
<html>
+<style>
+/* Add space between div and textfield so that touch selects the text in div. */
+#textDiv {
+ margin-bottom: 30px;
+}
+</style>
+<body>
+<div id='dummy'>Dummy Padding Text</div>
<div id='textDiv'>Some text we can select</div>
+<div id='dummy'>Dummy Padding Text</div>
+
<input id='textfield' type="text" value="Text in a textfield">
+</body>
<script>
function focus_textfield() {
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698