mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
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:
parent
4dc475d3a1
commit
b90f5f099f
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue