Skip to content

Commit e31503b

Browse files
committed
Merge pull request necolas#569 from necolas/fix/549
Limit Firefox focus normalization to buttons
2 parents 49d20b8 + b1f3b0c commit e31503b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

normalize.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,10 @@ html [type="button"], /* 1 */
306306
*/
307307

308308
button::-moz-focus-inner,
309-
input::-moz-focus-inner {
310-
border: 0;
309+
[type="button"]::-moz-focus-inner,
310+
[type="reset"]::-moz-focus-inner,
311+
[type="submit"]::-moz-focus-inner {
312+
border-style: none;
311313
padding: 0;
312314
}
313315

@@ -316,7 +318,9 @@ input::-moz-focus-inner {
316318
*/
317319

318320
button:-moz-focusring,
319-
input:-moz-focusring {
321+
[type="button"]:-moz-focusring,
322+
[type="reset"]:-moz-focusring,
323+
[type="submit"]:-moz-focusring {
320324
outline: 1px dotted ButtonText;
321325
}
322326

0 commit comments

Comments
 (0)