Add line-height:normal to <input> and <button> elements to match Firefox 3/4 value (set with !important in the UA stylesheet)

This commit is contained in:
Nicolas Gallagher 2011-05-17 02:47:28 -07:00
parent b8f2b7b34e
commit 4fdeb702f1

18
normalize.css vendored
View File

@ -228,21 +228,21 @@ textarea {
}
/*
* Define inner-spacing for button elements
* Targeting all inputs is harmless to non-button elements
* 1. Fixes spacing displayed oddly in IE6/7
* 2. Fixes inner padding and border displayed in FF3/4
* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
* 1. Define consistent line-height as 'normal'
* FF3/4 set it using !important in the UA stylesheet
* 2. Fixes spacing displayed oddly in IE6/7
*/
/* 1 */
button,
input {
*overflow: visible;
line-height: normal; /* 1 */
*overflow: visible; /* 2 */
}
/* 2 */
/*
* Fixes inner padding and border displayed in FF3/4
* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
*/
button::-moz-focus-inner,
input::-moz-focus-inner {