diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-02-23 00:46:36 +0000 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-02-26 16:44:05 +0100 |
commit | b90f5f099f0b882cf979287e2a3c66b214b60a4a (patch) | |
tree | 204c9210ae534f79363f0def24a6f91c6f6df7d8 /components/style/gecko/selector_parser.rs | |
parent | 4dc475d3a1c247464251f73b0537af2bf27f5dc0 (diff) | |
download | servo-b90f5f099f0b882cf979287e2a3c66b214b60a4a.tar.gz servo-b90f5f099f0b882cf979287e2a3c66b214b60a4a.zip |
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
Diffstat (limited to 'components/style/gecko/selector_parser.rs')
-rw-r--r-- | components/style/gecko/selector_parser.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/style/gecko/selector_parser.rs b/components/style/gecko/selector_parser.rs index 7010de45c7f..dbb9ac4db0d 100644 --- a/components/style/gecko/selector_parser.rs +++ b/components/style/gecko/selector_parser.rs @@ -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) } |