diff --git a/components/style/element_state.rs b/components/style/element_state.rs index 774e3936d2a..930c459b830 100644 --- a/components/style/element_state.rs +++ b/components/style/element_state.rs @@ -80,8 +80,6 @@ bitflags! { const IN_READWRITE_STATE = 1 << 25; /// const IN_DEFAULT_STATE = 1 << 26; - /// Non-standard: https://developer.mozilla.org/en-US/docs/Web/CSS/:-moz-submit-invalid - const IN_MOZ_SUBMITINVALID_STATE = 1 << 27; /// Non-standard & undocumented. const IN_OPTIMUM_STATE = 1 << 28; /// Non-standard & undocumented. diff --git a/components/style/gecko/non_ts_pseudo_class_list.rs b/components/style/gecko/non_ts_pseudo_class_list.rs index 14a74d3e570..c92f7ae8db2 100644 --- a/components/style/gecko/non_ts_pseudo_class_list.rs +++ b/components/style/gecko/non_ts_pseudo_class_list.rs @@ -37,7 +37,7 @@ macro_rules! apply_non_ts_list { ("any-link", AnyLink, IN_VISITED_OR_UNVISITED_STATE, _), ("visited", Visited, IN_VISITED_STATE, _), ("active", Active, IN_ACTIVE_STATE, _), - ("autofill", Autofill, IN_AUTOFILL_STATE, PSEUDO_CLASS_ENABLED_IN_UA_SHEETS_AND_CHROME), + ("autofill", Autofill, IN_AUTOFILL_STATE, _), ("checked", Checked, IN_CHECKED_STATE, _), ("defined", Defined, IN_DEFINED_STATE, _), ("disabled", Disabled, IN_DISABLED_STATE, _), @@ -76,7 +76,6 @@ macro_rules! apply_non_ts_list { ("placeholder-shown", PlaceholderShown, IN_PLACEHOLDER_SHOWN_STATE, _), ("read-only", ReadOnly, IN_READONLY_STATE, _), ("read-write", ReadWrite, IN_READWRITE_STATE, _), - ("-moz-submit-invalid", MozSubmitInvalid, IN_MOZ_SUBMITINVALID_STATE, _), ("user-valid", UserValid, IN_MOZ_UI_VALID_STATE, _), ("user-invalid", UserInvalid, IN_MOZ_UI_INVALID_STATE, _), ("-moz-meter-optimum", MozMeterOptimum, IN_OPTIMUM_STATE, _), diff --git a/components/style/gecko/selector_parser.rs b/components/style/gecko/selector_parser.rs index f13df17a986..47b2ce5e412 100644 --- a/components/style/gecko/selector_parser.rs +++ b/components/style/gecko/selector_parser.rs @@ -139,12 +139,6 @@ impl NonTSPseudoClass { /// Returns whether the pseudo-class is enabled in content sheets. #[inline] fn is_enabled_in_content(&self) -> bool { - 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"); - } if matches!(*self, Self::MozLWTheme | Self::MozLWThemeBrightText | Self::MozLWThemeDarkText) { return static_prefs::pref!("layout.css.moz-lwtheme.content.enabled"); } diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index d2a86caf100..e9c67eac554 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -1958,7 +1958,6 @@ impl<'le> ::selectors::Element for GeckoElement<'le> { NonTSPseudoClass::InRange | NonTSPseudoClass::OutOfRange | NonTSPseudoClass::Default | - NonTSPseudoClass::MozSubmitInvalid | NonTSPseudoClass::UserValid | NonTSPseudoClass::UserInvalid | NonTSPseudoClass::MozMeterOptimum |