It may be time to update your reset stylesheets

March 10th, 2011 by Jennifer Rogers

If you’re using Grails and the Grails UI plugin’s autocomplete feature, you may have noticed all of your textboxes have disappeared in Chrome 10. This is thanks to Chrome 10 adding a new default browser style for an invalid attribute: “hidden”.

Take a look at this jsFiddle: http://jsfiddle.net/jennyfofenny/VkCXh/ If you remove the CSS style on the right, Chrome 10 will by default hide input elements that have the “hidden” attribute set to true. The problem with this is that the hidden attribute is not a valid attribute – and should therefore be “undefined”.

So, if you’ve noticed this issue, make sure to add the following CSS style to your reset stylesheet so Chrome 10 behaves like all the other browsers:
input[hidden=true][type=text]{display:inline;}

Reddit Plusone Facebook Twitter Pinterest Stumbleupon Tumblr Digg Delicious

5 Responses to “It may be time to update your reset stylesheets”

  1. Jady Says:

    Thanks for introducing a little rtanioaltiy into this debate.

  2. Belka Says:

    *Can I just say what a relief to find someone who actually knows what theyre talking about on the internet. You definitely know how to bring an issue to light and make it important. More people need to read this and understand this side of the story. I cant believe youre not more popular because you definitely have the gift.

  3. spa w polsce Says:

    I will right away seize your rss as I can’t in finding your email subscription link or e-newsletter service. Do you have any? Please permit me know so that I may subscribe. Thanks.

  4. Inez Reczek Says:

    An impressive share, I just given this onto a colleague who was doing a little analysis on this. And he in fact bought me breakfast because I found it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to discuss this, I feel strongly about it and love reading more on this topic. If possible, as you become expertise, would you mind updating your blog with more details? It is highly helpful for me. Big thumb up for this blog post!

  5. Reuben Egerer Says:

    Hello there, You have done an incredible job. I will definitely digg it and personally suggest to my friends. I am sure they will be benefited from this site.

Leave a Reply