Correct the outline of search inputs in Safari (#575)

After modifying search input with -webkit-appearance: textfield, the
focus outline is remaining with `outline-offset: 0`, but should be
`-2px` like other textfield inputs.
This commit is contained in:
Jonathan Neal 2016-04-11 19:35:02 -04:00
parent 8ed3140d52
commit 2c4e2182e0

6
normalize.css vendored
View File

@ -381,11 +381,13 @@ textarea {
} }
/** /**
* Correct the odd appearance of search inputs in Chrome and Safari. * 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/ */
[type="search"] { [type="search"] {
-webkit-appearance: textfield; -webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
} }
/** /**