Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Normalizing the default handling of the :invalid pseudoclass #124
By default Firefox places a red
WebKit and Presto do nothing with this behavior so the easiest way to get a consistent look is simply to simply reset the values.
I'm a bit torn about this because I do think that having the red
Let me know what you think.
When I created the h5Validate jQuery plugin a few years ago, it was before any browser had implemented the spec. When the browsers started implementing and added their default behaviors, it was very jarring to see the default browser styles mixing very badly with most web designs.
Most web designers will want custom styling for error messages, and these defaults only get in the way.
In this case, I think it would be better to leave these evolving browser defaults alone and leave it up to site/app developers to deal with this as they see fit. I generally try to avoid interfering with styles if it can negatively impact accessibility and usability. Thanks