From 61ad3b8d6efd32fdfe5907bdaceb6c73bb04b208 Mon Sep 17 00:00:00 2001 From: MeladJM Date: Mon, 28 Jul 2025 03:51:09 +0800 Subject: [PATCH] Issue #2790 - Part 6: Highlight color change and remove important --- layout/style/res/forms.css | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/layout/style/res/forms.css b/layout/style/res/forms.css index bc07a8ff4a..e704ba40fb 100644 --- a/layout/style/res/forms.css +++ b/layout/style/res/forms.css @@ -1150,13 +1150,20 @@ input[type="time"] { overflow: hidden !important; } -/* Autofill highlight for internal-only pseudo-class */ -input:-moz-autofill-highlight, +input[type="text"]:-moz-autofill-highlight, +input[type="email"]:-moz-autofill-highlight, +input[type="password"]:-moz-autofill-highlight, +input[type="search"]:-moz-autofill-highlight, +input[type="tel"]:-moz-autofill-highlight, +input[type="url"]:-moz-autofill-highlight, +input[type="number"]:-moz-autofill-highlight, +input[type="date"]:-moz-autofill-highlight, +input[type="time"]:-moz-autofill-highlight, +input[type="datetime-local"]:-moz-autofill-highlight, +input[type="month"]:-moz-autofill-highlight, +input[type="week"]:-moz-autofill-highlight, select:-moz-autofill-highlight, textarea:-moz-autofill-highlight { - background-color: #ffff99 !important; + background-color: #fffcd0 !important; } -.custom-autofill-highlight { - background: yellow !important; -}