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

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: 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
« no previous file with comments | « LayoutTests/touchadjustment/search-cancel.html ('k') | Source/core/html/forms/SearchInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/html.css
diff --git a/Source/core/css/html.css b/Source/core/css/html.css
index 5237586dd1225f650bd3745f420939a1d28c4620..af23edcd2c3d7979f2c7c1a30d53f10f7909cef0 100644
--- a/Source/core/css/html.css
+++ b/Source/core/css/html.css
@@ -456,6 +456,13 @@ input[type="search"]::-webkit-search-cancel-button {
flex: none;
-webkit-user-modify: read-only !important;
-webkit-margin-start: 1px;
+ opacity: 0;
+ pointer-events: none;
+}
+
+input[type="search"]:enabled:read-write:-webkit-any(:focus,:hover)::-webkit-search-cancel-button {
+ opacity: 1;
+ pointer-events: auto;
}
input[type="search"]::-webkit-search-decoration {
« no previous file with comments | « LayoutTests/touchadjustment/search-cancel.html ('k') | Source/core/html/forms/SearchInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698