Can anyone explain why this code works in Safari, but not in Firefox and Chrome?
Here is the HTML:
<input type="search" placeholder="Search" id="search" name="search" id="s" data-icon="s">
And here is the CSS:
#search[data-icon]:before {
font-family: 'Pictos Custom';
content: attr(data-icon);
-webkit-font-smoothing: antialiased;
}
Would really appreciate any assistance.