Issue #2790 - Part 2: Address BZ bugs: 1355438 and 1341230

This commit is contained in:
MeladJM 2025-07-22 03:21:45 +08:00 • committed by roytam1
commit d99eab0d9d
8 changed files with 85 additions and 0 deletions

View file

@ -277,6 +277,9 @@ CSS_STATE_PSEUDO_CLASS(mozMeterSubSubOptimum, ":-moz-meter-sub-sub-optimum", 0,
// Those values should be parsed but do nothing.
CSS_STATE_PSEUDO_CLASS(mozPlaceholder, ":-moz-placeholder", 0, "", NS_EVENT_STATE_IGNORE)
// Internal-only pseudo-class for autofill highlight
CSS_STATE_PSEUDO_CLASS(mozAutofillHighlight, ":-moz-autofill-highlight", CSS_PSEUDO_CLASS_ENABLED_IN_UA_SHEETS, "", NS_EVENT_STATE_AUTOFILL)
#ifdef DEFINED_CSS_STATE_PSEUDO_CLASS
#undef DEFINED_CSS_STATE_PSEUDO_CLASS
#undef CSS_STATE_PSEUDO_CLASS

View file

@ -1149,3 +1149,9 @@ input[type="date"],
input[type="time"] {
overflow: hidden !important;
}
/* Autofill highlight for internal-only pseudo-class */
input:-moz-autofill-highlight,
textarea:-moz-autofill-highlight {
background-color: #ffff99 !important;
}