Happy holidays, all. I'll probably feel very silly when I get the answer to this, but I'd like to know how to use the CSS "-webkit-appearance: searchfield-results-decoration" rule to draw a small magnifying glass inside a search box.
I'd like to create a search box like the one in the upper right corner of apple.com. It should have rounded corners, a magnifying glass icon, and a cancel/clear button that appears once the user starts typing. I can get most of the way there with
<input type="search" />
but this lacks the magnifying glass icon. I also know I can style an input element with "-webkit-appearance: searchfield" but this just seems to make the rounded corners without the proper left/right padding, icon, or cancel button.
I only care about this working in Webkit since it will be used in a Cocoa WebView. I don't need markup for IE, Firefox, Opera, etc.