It looks like you did everything right, but from the default styles of Firefox and some undocumented hidden (pseudo) elements attached to the buttons, dark magic appears.
I have not yet found a rule that will help you with this problem, but you can try to see the default styles yourself. If you type the address bar of Firefox: resource://gre-resources/forms.css , you will see one of the default stylesheets.
Some suspicious selectors (just wild guesses): *|*::-moz-button-content or input > .anonymous-div . The second, apparently, is not defined for the button , but who knows where else the magic lies?
In any case, I suppose you can report this as an error .
source share