From efd8220019a5cb25b94a959a7faf9c08bafeb827 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 17 Jan 2012 16:33:39 +0000 Subject: [PATCH] Remove search cancel button from search inputs on Mac OS X. After normalizing the search input on OS X, the search cancel pseudo-element is not always well positioned and is missing from other UAs. --- normalize.css | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/normalize.css b/normalize.css index 97d35fb..1e10e7d 100644 --- a/normalize.css +++ b/normalize.css @@ -1,4 +1,4 @@ -/*! normalize.css 2012-01-17T15:37 UTC - http://github.com/necolas/normalize.css */ +/*! normalize.css 2012-01-17T16:33 UTC - http://github.com/necolas/normalize.css */ /* ============================================================================= HTML5 display definitions @@ -402,6 +402,14 @@ input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } +/* + * Removes search cancel button in S5, Chrome on OS X + */ + +input[type="search"]::-webkit-search-cancel-button { + -webkit-appearance: none; +} + /* * Removes inner padding and border in FF3+ * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/