I’ve written this fiddle to demo the problem. I have a simple form. When a textbox gets focus all I wish to happen is for the textbox’s background to change. In Firefox 9 this works fine. In Chrome it seems to incorrectly alter the input’s outline. Even If I explicitly set it. Chrome changes it and puts a black outline around the input on focus.
Here’s the JS Fiddle: http://jsfiddle.net/H3qay/
Any help would be appreciated.
Apparently, WebKit (used by Safari and Chrome) applies a negative
outline-offsetto focused form inputs. You can see it in the following CSS rule for focused form inputs in WebKit’s default style sheet:So undoing this is simply a matter of setting it to
0:Updated jsFiddle demo