Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing input type="search" behaviour in Safari #396

Closed
MarcHaunschild opened this issue Mar 23, 2011 · 5 comments
Closed

fixing input type="search" behaviour in Safari #396

MarcHaunschild opened this issue Mar 23, 2011 · 5 comments

Comments

@MarcHaunschild
Copy link

Hi there,

the following I found at http://diveintohtml5.org/forms.html by Mark Pilgrim. I suggest to add the rule to style.css:
" By default, Safari will not apply even the most basic CSS styles to fields. If you want to force Safari to treat your search field like a normal text field (so you can apply your own CSS styles), add this rule to your stylesheet:

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

Thanks to John Lein for teaching me this trick."

Marc

@chuanxshi
Copy link
Member

I read about that too, but when testing on safari and mobile safari, I don't see the issue, maybe it's for old versions of safari?

@hoopyfrood
Copy link

+1

I have attached screenshots of the behaviour:

Great find, Marc/John Lein!

@chuanxshi
Copy link
Member

argh, now i got the point, sorry, misunderstood the whole thing at first, yea +1

@chuanxshi
Copy link
Member

Fixing input type="search" behaviour in Safari by John Lein http://diveintohtml5.org/forms.html thanks to MarcHaunschild and hoopyfrood closed by 4dc87b5

@paulirish
Copy link
Member

I'm -1 on this..

We're discussing it further on the commit: 4dc87b5

dustinwhittle pushed a commit that referenced this issue Apr 18, 2011
dustinwhittle pushed a commit that referenced this issue Apr 18, 2011
…ttp://diveintohtml5.org/forms.html thanks to MarcHaunschild and hoopyfrood fixes #396"

This reverts commit 4dc87b5.

Based on the conversation here:
paulirish@4dc87b52c2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants