The button reset, while very helpful, has an unfortunate amount of specificity when using it with an input element. Because the element + attribute selector is more specific than just a class selector, simply adding a class of Button to an input is not enough to override the reset.
However, since attribute selectors and class selectors have the same specificity and only button and input elements have the types button, submit, and reset, reducing the reset to just the attribute selectors should fix this issue.
The button reset, while very helpful, has an unfortunate amount of specificity when using it with an
input
element. Because the element + attribute selector is more specific than just a class selector, simply adding a class ofButton
to aninput
is not enough to override the reset.However, since attribute selectors and class selectors have the same specificity and only
button
andinput
elements have the typesbutton
,submit
, andreset
, reducing the reset to just the attribute selectors should fix this issue.