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

Unified Diff: LayoutTests/fast/forms/search/search-appearance-basic.html

Issue 100823012: Show delete button in input[type=search] only if the field is editable and focused/hovered. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update touchadjustment/search-cancel.html Created 7 years 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/forms/search/search-appearance-basic.html
diff --git a/LayoutTests/fast/forms/search/search-appearance-basic.html b/LayoutTests/fast/forms/search/search-appearance-basic.html
index 59000bb43ff7cf257e4fe4e54a7e67d7fdb95d6e..4dba7f1970007c87e2c5950daeb7766f4dd8aa9e 100644
--- a/LayoutTests/fast/forms/search/search-appearance-basic.html
+++ b/LayoutTests/fast/forms/search/search-appearance-basic.html
@@ -19,7 +19,10 @@ input {
</style>
<!-- no style for reference -->
-<input type="search" value="foo"> <br>
+<input type="search" value="foo"> <input type="search" value="foo" id="hovered"><br>
+
+<input type="search" readonly value="foo">
+<input type="search" disabled value="foo"> <br>
<!-- border -->
<input type="search" value="foo" style="border: 3px solid lime;">
@@ -47,4 +50,11 @@ input {
<!-- various style -->
<input type="search" class="inputtext inputsearch" title="Search for Events" placeholder="Search for Events" id="q_dashboard" name="q" value="" results="10" />
+
+<script>
+var input = document.getElementById('hovered');
+if (window.eventSender)
+ eventSender.mouseMoveTo(input.offsetLeft + input.offsetWidth / 2, input.offsetTop + input.offsetHeight / 2);
+document.querySelector('input[readonly]').focus();
+</script>
</body>
« no previous file with comments | « LayoutTests/fast/forms/search-cancel-button-style-sharing.html ('k') | LayoutTests/touchadjustment/search-cancel.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698