Style search inputs in Safari

guillee:

HTML5 search inputs work & look great in Safari, but by default they’re impervious to CSS. If you want to style them, use this rule in your stylesheet to force Safari to treat them like a regular text field:

input[type="search"] {
  -webkit-appearance: textfield;
}

(Tip of the hat to Mark Pilgrim.)

(Source: guillee)

Tags: html5 code