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

Unified Diff: Source/core/css/html.css

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: 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: Source/core/css/html.css
diff --git a/Source/core/css/html.css b/Source/core/css/html.css
index 5237586dd1225f650bd3745f420939a1d28c4620..4cbd7b79965c0dabf4e2d9d1906f7a03be7d65b0 100644
--- a/Source/core/css/html.css
+++ b/Source/core/css/html.css
@@ -456,6 +456,11 @@ input[type="search"]::-webkit-search-cancel-button {
flex: none;
-webkit-user-modify: read-only !important;
-webkit-margin-start: 1px;
+ opacity: 0;
keishi 2013/12/09 06:24:49 I think this should be "visibility: hidden". "opac
tkent 2013/12/09 06:45:18 Oh, touch devices.. You're right. We don't have
+}
+
+input[type="search"]:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-search-cancel-button {
+ opacity: 1;
}
input[type="search"]::-webkit-search-decoration {
« no previous file with comments | « LayoutTests/fast/forms/search/search-appearance-basic.html ('k') | Source/core/html/forms/SearchInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698