Open Bug 642802 Opened 15 years ago Updated 3 years ago

Setting custom background color via CSS removes native control styling from text box (borders etc.)

Categories

(Core :: Layout, defect)

52 Branch
x86
Windows 10
defect

Tracking

()

UNCONFIRMED

People

(Reporter: ygoe, Unassigned)

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0 Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0 A text box input on an HTML page has the default platform appearance when not styled otherwise. Most notable on Windows 7, it has that light inset border. When applying a background colour to that element, the border reverts to 90's Gtk style, i.e. 2px inset with darker grey shaded, which looks (ugly) and a lot different from the default appearance. I've seen TextBox controls in .NET that don't change the border at all when setting a different background colour, so I guess it's possible to keep the border in that case. Reproducible: Always
Attached file Test case
Version: unspecified → 4.0 Branch
On my win7 nightly build it doesn't look like the image, looks OK.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
Still the same, does not work at all. Firefox 52 on Windows 10, nothing has changed. Please reopen.
Status: RESOLVED → UNCONFIRMED
OS: Windows 7 → Windows 10
Resolution: WORKSFORME → ---
Version: 4.0 Branch → 52 Branch
I'm pretty sure this behaviour is expected and required for web compat. When websites use custom background colours they don't want native styling, even if it would be possible to reconcile native styling with the custom background colour. Websites would likely break if we changed that behaviour today. In any case, this is a Core::Layout issue, so moving it there and the experts there can decide what to do with this bug.
Component: General → Layout
Product: Firefox → Core
Summary: Background colour corrupts themed text box border → Setting custom background color via CSS removes native control styling from text box (borders etc.)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: