From 9e03fa486d767bf0a6ca4e08b6d8af3169ba9656 Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Fri, 22 Nov 2013 13:24:55 +0000 Subject: [PATCH] Bug 935544 - Inherit 'text-align' through 's anonymous content. r=dholbert --- layout/style/forms.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/layout/style/forms.css b/layout/style/forms.css index b18f74dfb264..4ba9405185f4 100644 --- a/layout/style/forms.css +++ b/layout/style/forms.css @@ -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 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 + * ancestor, not have that general CSS rule reset it. + */ + text-align: inherit; flex: 1; padding: 0; border: 0;