On Thu, 23 Aug 2012 17:58:09 -0500
»Q« <
box...@gmx.net> wrote:
> I don't know why you couldn't replicate my results when you used
> userContent.css for it but could when you used Stylish. I'll play
> around with it if I get a chance (and if I remember) but I've gotta
> put this on a far back burner for now.
Well, it didn't take long for me to stop working and start
procrastinating by looking into it, heh.
The reason it doesn't work with userContent.css is because of
several !important declarations in Firefox's inbuilt forms.css. Older
versions of Stylish couldn't override them either, but obviously now
Stylish can override them.
The !important declarations in forms.css date back to c. 2000-2001.
They're there because at that time (and even now for all I know) the
CSS specs had nothing to say about styling form input elements, so
there wasn't any "correct" way to handle author styles. Letting
author styles override user-agent styles was resulting in input
elements which were invisible in some cases, and that problem was bad
enough for Firefox devs to decide to violate the general principle that
author styles should override user-agent styles. A side-effect is that
user styles can't override them either (without Stylish, anyway).