From b1f3b0c0aa3da28019bf8091fafd1699bff9aec3 Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Sun, 10 Apr 2016 18:47:13 -0400 Subject: [PATCH] Limit Firefox focus normalization to buttons Spacing does not need to be normalized for all `input` elements in Firefox, only `button` and `[type="button"]` elements. These normalizations were changing the default focus appearance of `input` elements. Resolves #549 --- normalize.css | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/normalize.css b/normalize.css index 54da14f..a4a667a 100644 --- a/normalize.css +++ b/normalize.css @@ -306,8 +306,10 @@ html [type="button"], /* 1 */ */ button::-moz-focus-inner, -input::-moz-focus-inner { - border: 0; +[type="button"]::-moz-focus-inner, +[type="reset"]::-moz-focus-inner, +[type="submit"]::-moz-focus-inner { + border-style: none; padding: 0; } @@ -316,7 +318,9 @@ input::-moz-focus-inner { */ button:-moz-focusring, -input:-moz-focusring { +[type="button"]:-moz-focusring, +[type="reset"]:-moz-focusring, +[type="submit"]:-moz-focusring { outline: 1px dotted ButtonText; }