diff --git a/layout/reftests/forms/input/number/number.html b/layout/reftests/forms/input/number/number.html deleted file mode 100644 index 0b4221fe705b..000000000000 --- a/layout/reftests/forms/input/number/number.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/layout/reftests/forms/input/number/reftest.list b/layout/reftests/forms/input/number/reftest.list index 256e3f1df1eb..ca078e475852 100644 --- a/layout/reftests/forms/input/number/reftest.list +++ b/layout/reftests/forms/input/number/reftest.list @@ -1,5 +1,5 @@ # sanity checks: -fails-if(Android) pref(dom.forms.number.hide_spin_buttons_when_no_hover_or_focus,false) != not-other-type-unthemed-1.html not-other-type-unthemed-1a-notref.html +fails-if(Android) != not-other-type-unthemed-1.html not-other-type-unthemed-1a-notref.html != not-other-type-unthemed-1.html not-other-type-unthemed-1b-notref.html # should look the same as type=text, except for the spin box @@ -17,7 +17,7 @@ fuzzy(0-2,0-13) == show-value.html show-value-ref.html # disabled == number-disabled.html number-disabled-ref.html -fails-if(Android) pref(dom.forms.number.hide_spin_buttons_when_no_hover_or_focus,false) != number-spinbox-disabled.html number-spinbox-disabled-notref.html +fails-if(Android) != number-spinbox-disabled.html number-spinbox-disabled-notref.html # auto width: == number-auto-width-1.html number-auto-width-1-ref.html @@ -72,5 +72,3 @@ fuzzy(0-14,0-4) == clipped-text.html clipped-text-ref.html fails-if(useDrawSnapshot) needs-focus != caret-right.html caret-right-notref.html fails-if(useDrawSnapshot) needs-focus != caret-left-rtl.html caret-left-rtl-notref.html fails-if(useDrawSnapshot) needs-focus != caret-right-vertical.html caret-right-vertical-notref.html - -fails-if(Android) test-pref(dom.forms.number.hide_spin_buttons_when_no_hover_or_focus,true) ref-pref(dom.forms.number.hide_spin_buttons_when_no_hover_or_focus,false) != number.html number.html diff --git a/layout/style/res/forms.css b/layout/style/res/forms.css index 7a5c25fc6e1f..a9f473abf3ad 100644 --- a/layout/style/res/forms.css +++ b/layout/style/res/forms.css @@ -858,13 +858,6 @@ input[type=number]::-moz-number-spin-box { overflow: clip; } -/* stylelint-disable-next-line media-query-no-invalid */ -@media (-moz-bool-pref: "dom.forms.number.hide_spin_buttons_when_no_hover_or_focus") { - input[type=number]:not(:hover, :focus)::-moz-number-spin-box { - opacity: 0; - } -} - input[type=number]::-moz-number-spin-up, input[type=number]::-moz-number-spin-down { writing-mode: horizontal-tb; diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml index 78e797e72d23..807b7f3328e8 100644 --- a/modules/libpref/init/StaticPrefList.yaml +++ b/modules/libpref/init/StaticPrefList.yaml @@ -2703,13 +2703,6 @@ value: false mirror: always -# Whether the spin buttons will always appear, or if they -# will only appear when the input is focused or hovered. -- name: dom.forms.number.hide_spin_buttons_when_no_hover_or_focus - type: bool - value: @IS_NIGHTLY_BUILD@ - mirror: always - # Whether the Gamepad API is enabled - name: dom.gamepad.enabled type: bool diff --git a/xpcom/ds/StaticAtoms.py b/xpcom/ds/StaticAtoms.py index 8fc867076e0a..02df4fcf6c48 100644 --- a/xpcom/ds/StaticAtoms.py +++ b/xpcom/ds/StaticAtoms.py @@ -2420,7 +2420,6 @@ STATIC_ATOMS = [ Atom("layout_css_always_underline_links", "layout.css.always_underline_links"), Atom("layout_css_cached_scrollbar_styles_enabled", "layout.css.cached-scrollbar-styles.enabled"), Atom("layout_css_h1_in_section_ua_styles_enabled", "layout.css.h1-in-section-ua-styles.enabled"), - Atom("dom_forms_number_hide_spin_buttons_when_no_hover_or_focus", "dom.forms.number.hide_spin_buttons_when_no_hover_or_focus"), # Contextual Identity / Containers Atom("usercontextid", "usercontextid"), Atom("geckoViewSessionContextId", "geckoViewSessionContextId"),