Bug 935544 - Inherit 'text-align' through <input type=number>'s anonymous content. r=dholbert

This commit is contained in:
Jonathan Watt 2013-11-22 13:24:55 +00:00
parent fa91db9b82
commit 9e03fa486d

View File

@ -901,6 +901,13 @@ input[type=number]::-moz-number-text {
-moz-appearance: none;
/* work around autofocus bug 939248 on initial load */
-moz-user-modify: read-write;
/* This pseudo-element is also an 'input' element (nested inside and
* distinct from the <input type=number> element) so we need to prevent the
* explicit setting of 'text-align' by the general CSS rule for 'input'
* above. We want to inherit its value from its <input type=number>
* ancestor, not have that general CSS rule reset it.
*/
text-align: inherit;
flex: 1;
padding: 0;
border: 0;