style: Hide :-moz-submit-invalid behind a pref.

No other browser supports anything like this and we don't even have
internal users. Only uses of this I've found on the wild were just
resetting the box shadow internal styling we added in bug 582277 (and
since removed in bug 600151).

Differential Revision: https://phabricator.services.mozilla.com/D105955
This commit is contained in:
Emilio Cobos Álvarez 2021-02-23 00:46:36 +00:00
parent 4dc475d3a1
commit b90f5f099f

View file

@ -140,6 +140,9 @@ impl NonTSPseudoClass {
if let NonTSPseudoClass::Autofill = *self {
return static_prefs::pref!("layout.css.autofill.enabled");
}
if let NonTSPseudoClass::MozSubmitInvalid = *self {
return static_prefs::pref!("layout.css.moz-submit-invalid.enabled");
}
!self.has_any_flag(NonTSPseudoClassFlag::PSEUDO_CLASS_ENABLED_IN_UA_SHEETS_AND_CHROME)
}