From 00d4ea331d0b843c47f31c08ddade2c3384ff14e Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Mon, 22 May 2017 15:45:31 +0200 Subject: [PATCH] Backed out changeset bbb688fe1ba3 (bug 1365614) --- .../general/browser_tab_dragdrop2_frame1.xul | 4 +- .../test/static/browser_parsable_css.js | 4 -- devtools/client/responsive.html/index.css | 2 +- .../sourceeditor/test/browser_css_getInfo.js | 4 +- .../test/css_statemachine_testcases.css | 6 +-- .../test/css_statemachine_tests.json | 3 -- devtools/client/themes/animationinspector.css | 2 +- .../client/themes/commandline-browser.css | 7 ++-- devtools/client/themes/common.css | 6 +-- devtools/client/themes/debugger.css | 4 +- devtools/client/themes/devtools-browser.css | 2 +- .../themes/floating-scrollbars-dark-theme.css | 6 +-- .../floating-scrollbars-responsive-design.css | 6 +-- devtools/client/themes/new-webconsole.css | 2 +- devtools/client/themes/responsivedesign.css | 22 +++++----- devtools/client/themes/shadereditor.css | 4 +- devtools/client/themes/splitters.css | 2 +- devtools/client/themes/toolbars.css | 8 ++-- devtools/client/themes/toolbox.css | 2 +- devtools/client/themes/tooltips.css | 2 +- devtools/client/themes/webaudioeditor.css | 2 +- devtools/client/themes/webconsole.css | 2 +- devtools/client/themes/widgets.css | 6 +-- .../shared/css/generated/properties-db.js | 41 +++++++++++++++++++ .../mozilla/file_discrete-animations.html | 5 --- .../test/test_caretPositionFromPoint.html | 2 +- dom/events/test/bug656379-1.html | 2 +- dom/events/test/test_bug864040.html | 2 +- .../reftests/autofocus/input-number-ref.html | 2 +- dom/html/reftests/autofocus/input-number.html | 2 +- .../reftests/autofocus/input-time-ref.html | 2 +- dom/html/reftests/autofocus/input-time.html | 2 +- ...st_input_textarea_set_value_no_scroll.html | 4 +- .../mochitest/general/test_focusrings.xul | 2 +- dom/tests/mochitest/general/test_offsets.xul | 4 +- editor/libeditor/tests/test_bug1053048.html | 2 +- editor/reftests/xul/input.css | 2 +- gfx/src/nsThemeConstants.h | 3 ++ gfx/tests/crashtests/crashtests.list | 6 +-- layout/base/GeckoRestyleManager.cpp | 6 +-- layout/base/RestyleManager.cpp | 2 +- layout/base/crashtests/crashtests.list | 2 +- layout/base/nsCSSFrameConstructor.cpp | 2 +- layout/base/nsLayoutUtils.cpp | 6 +-- layout/base/tests/bug106855-1-ref.html | 2 +- layout/base/tests/bug106855-1.html | 2 +- layout/base/tests/bug106855-2.html | 2 +- layout/base/tests/bug1237236-1-ref.html | 2 +- layout/base/tests/bug1237236-1.html | 2 +- layout/base/tests/bug1258308-1-ref.html | 2 +- layout/base/tests/bug1258308-1.html | 2 +- layout/base/tests/bug1259949-1-ref.html | 2 +- layout/base/tests/bug1259949-1.html | 2 +- layout/base/tests/bug240933-1-ref.html | 2 +- layout/base/tests/bug240933-1.html | 2 +- layout/base/tests/bug240933-2.html | 2 +- layout/base/tests/bug585922-ref.html | 2 +- layout/base/tests/bug585922.html | 2 +- layout/base/tests/bug597519-1-ref.html | 2 +- layout/base/tests/bug597519-1.html | 2 +- layout/base/tests/bug612271-1.html | 2 +- layout/base/tests/bug612271-2.html | 2 +- layout/base/tests/bug612271-3.html | 2 +- layout/base/tests/bug612271-ref.html | 2 +- layout/base/tests/bug613807-1-ref.html | 2 +- layout/base/tests/bug613807-1.html | 2 +- layout/base/tests/bug634406-1-ref.html | 2 +- layout/base/tests/bug634406-1.html | 2 +- layout/base/tests/bug646382-1-ref.html | 2 +- layout/base/tests/bug646382-1.html | 2 +- layout/base/tests/bug646382-2-ref.html | 2 +- layout/base/tests/bug646382-2.html | 2 +- layout/base/tests/bug664087-1-ref.html | 2 +- layout/base/tests/bug664087-1.html | 2 +- layout/base/tests/bug664087-2-ref.html | 2 +- layout/base/tests/bug664087-2.html | 2 +- .../chrome_content_integration_window.xul | 2 +- layout/base/tests/test_bug332655-1.html | 2 +- layout/base/tests/test_bug332655-2.html | 2 +- layout/base/tests/test_bug499538-1.html | 2 +- layout/base/tests/test_bug644768.html | 2 +- layout/forms/crashtests/1102791.html | 2 +- layout/forms/crashtests/crashtests.list | 4 +- layout/forms/nsButtonFrameRenderer.cpp | 4 +- layout/forms/nsComboboxControlFrame.cpp | 6 +-- layout/forms/nsFormControlFrame.cpp | 8 ++-- layout/forms/nsMeterFrame.cpp | 4 +- layout/forms/nsNumberControlFrame.cpp | 6 +-- layout/forms/nsProgressFrame.cpp | 4 +- layout/forms/nsRangeFrame.cpp | 4 +- layout/forms/test/bug665540_window.xul | 2 +- layout/forms/test/test_bug476308.html | 2 +- layout/forms/test/test_textarea_resize.html | 2 +- layout/generic/ReflowInput.cpp | 4 +- layout/generic/crashtests/crashtests.list | 10 ++--- layout/generic/nsFlexContainerFrame.cpp | 2 +- layout/generic/nsFrame.cpp | 18 ++++---- layout/generic/nsIFrame.h | 6 +-- .../test/test_selection_preventDefault.html | 2 +- layout/painting/nsCSSRendering.cpp | 26 ++++++------ layout/painting/nsDisplayList.cpp | 14 +++---- layout/reftests/abs-pos/button-1.html | 2 +- layout/reftests/abs-pos/button-2.html | 2 +- .../box-shadow/boxshadow-button-ref.html | 2 +- .../reftests/box-shadow/boxshadow-button.html | 2 +- layout/reftests/bugs/180085-1-ref.html | 2 +- layout/reftests/bugs/180085-1.html | 2 +- layout/reftests/bugs/180085-2-ref.html | 2 +- layout/reftests/bugs/180085-2.html | 2 +- layout/reftests/bugs/363858-2-ref.html | 2 +- layout/reftests/bugs/363858-2.html | 2 +- layout/reftests/bugs/363858-4-ref.html | 2 +- layout/reftests/bugs/363858-4.html | 2 +- layout/reftests/bugs/363858-6-ref.html | 2 +- layout/reftests/bugs/363858-6a.html | 2 +- layout/reftests/bugs/363858-6b.html | 2 +- layout/reftests/bugs/373381-2-ref.html | 6 +-- layout/reftests/bugs/373381-2.html | 6 +-- layout/reftests/bugs/373381-4-ref.html | 6 +-- layout/reftests/bugs/373381-4.html | 6 +-- layout/reftests/bugs/423599-1-ref.html | 2 +- layout/reftests/bugs/423599-1.html | 2 +- layout/reftests/bugs/468473-1-ref.xul | 2 +- layout/reftests/bugs/468473-1.xul | 2 +- layout/reftests/bugs/474336-1-ref.xul | 4 +- layout/reftests/bugs/474336-1.xul | 4 +- layout/reftests/bugs/491180-1-ref.html | 2 +- layout/reftests/bugs/491180-1.html | 2 +- layout/reftests/bugs/491180-2-ref.html | 2 +- layout/reftests/bugs/491180-2.html | 2 +- layout/reftests/bugs/491323-1-ref.xul | 2 +- layout/reftests/bugs/491323-1.xul | 2 +- layout/reftests/bugs/542116-1-ref.html | 2 +- layout/reftests/bugs/542116-1.html | 2 +- layout/reftests/bugs/542116-2-ref.html | 2 +- layout/reftests/bugs/542116-2.html | 2 +- layout/reftests/bugs/664127-1.css | 2 +- layout/reftests/bugs/668319-1.xul | 2 +- layout/reftests/bugs/966992-1-ref.html | 4 +- layout/reftests/bugs/966992-1.html | 4 +- layout/reftests/css-enabled/select/style.css | 2 +- layout/reftests/css-invalid/input/style.css | 2 +- .../css-placeholder/input/style-shown.css | 4 +- .../css-placeholder/textarea/style-shown.css | 4 +- layout/reftests/flexbox/reftest.list | 2 +- .../forms/button/percent-height-child.html | 2 +- .../forms/button/percent-width-child.html | 2 +- layout/reftests/forms/button/reftest.list | 2 +- .../forms/button/vertical-centering.html | 2 +- .../forms/button/width-auto-size-em-ltr.html | 2 +- .../forms/button/width-auto-size-em-rtl.html | 2 +- .../forms/button/width-auto-size-ltr.html | 2 +- .../forms/button/width-auto-size-rtl.html | 2 +- .../width-erode-all-focuspadding-rtl.html | 2 +- .../forms/button/width-exact-fit-ltr.html | 2 +- .../forms/button/width-exact-fit-rtl.html | 2 +- .../input/checkbox/checkbox-baseline.html | 2 +- .../checkbox/checked-appearance-none.html | 2 +- .../indeterminate-checked-notref.html | 2 +- .../input/checkbox/indeterminate-checked.html | 2 +- .../indeterminate-unchecked-notref.html | 2 +- .../checkbox/indeterminate-unchecked.html | 2 +- .../checkbox/unchecked-appearance-none.html | 2 +- .../reftests/forms/input/color/reftest.list | 2 +- .../from-time-to-other-type-unthemed-ref.html | 2 +- .../from-time-to-other-type-unthemed.html | 2 +- .../datetime/time-simple-unthemed-ref.html | 2 +- .../input/datetime/time-simple-unthemed.html | 2 +- .../to-time-from-other-type-unthemed.html | 2 +- layout/reftests/forms/input/file/style.css | 2 +- .../input/number/focus-handling-ref.html | 4 +- .../forms/input/number/focus-handling.html | 4 +- ...m-number-to-other-type-unthemed-1-ref.html | 2 +- .../from-number-to-other-type-unthemed-1.html | 2 +- .../number/not-other-type-unthemed-1.html | 2 +- .../not-other-type-unthemed-1a-notref.html | 2 +- .../not-other-type-unthemed-1b-notref.html | 2 +- .../input/number/number-auto-width-1-ref.html | 2 +- .../input/number/number-auto-width-1.html | 2 +- .../input/number/number-disabled-ref.html | 2 +- .../forms/input/number/number-disabled.html | 2 +- .../number/number-pseudo-elements-ref.html | 2 +- .../input/number/number-pseudo-elements.html | 2 +- .../number-same-as-text-unthemed-ref.html | 2 +- .../number/number-same-as-text-unthemed.html | 2 +- .../number-similar-to-text-unthemed-ref.html | 2 +- ...mber-similar-to-text-unthemed-rtl-ref.html | 2 +- .../number-similar-to-text-unthemed-rtl.html | 2 +- ...ilar-to-text-unthemed-vertical-lr-ref.html | 2 +- ...-similar-to-text-unthemed-vertical-lr.html | 2 +- ...ilar-to-text-unthemed-vertical-rl-ref.html | 2 +- ...-similar-to-text-unthemed-vertical-rl.html | 2 +- .../number-similar-to-text-unthemed.html | 2 +- .../reftests/forms/input/number/reftest.list | 10 ++--- .../forms/input/number/show-value-ref.html | 2 +- .../forms/input/number/show-value.html | 2 +- ...number-from-other-type-unthemed-1-ref.html | 2 +- .../to-number-from-other-type-unthemed-1.html | 2 +- .../input/radio/checked-appearance-none.html | 2 +- .../radio/unchecked-appearance-none.html | 2 +- .../range/75pct-unthemed-common-ref.html | 2 +- ...t-fraction-of-range-unthemed-1-notref.html | 2 +- ...ifferent-fraction-of-range-unthemed-1.html | 2 +- .../input/range/direction-unthemed-1-ref.html | 2 +- .../input/range/direction-unthemed-1.html | 2 +- ...om-range-to-other-type-unthemed-1-ref.html | 2 +- .../from-range-to-other-type-unthemed-1.html | 2 +- .../range/not-other-type-unthemed-1.html | 2 +- .../not-other-type-unthemed-1a-notref.html | 2 +- .../not-other-type-unthemed-1b-notref.html | 2 +- .../not-other-type-unthemed-1c-notref.html | 2 +- ...same-fraction-of-range-unthemed-1-ref.html | 2 +- .../same-fraction-of-range-unthemed-1.html | 2 +- .../forms/input/range/stepDown-unthemed.html | 2 +- .../forms/input/range/stepUp-unthemed.html | 2 +- ...-range-from-other-type-unthemed-1-ref.html | 2 +- .../to-range-from-other-type-unthemed-1.html | 2 +- .../input/range/value-prop-unthemed.html | 2 +- .../range/valueAsNumber-prop-unthemed.html | 2 +- .../forms/meter/default-style/style.css | 2 +- layout/reftests/forms/meter/style.css | 2 +- layout/reftests/forms/progress/reftest.list | 3 ++ layout/reftests/forms/progress/style.css | 6 +-- .../forms/select/focusring-1-ref.html | 2 +- layout/reftests/forms/select/focusring-1.html | 2 +- .../forms/select/focusring-2-ref.html | 2 +- layout/reftests/forms/select/focusring-2.html | 2 +- .../forms/select/focusring-3-ref.html | 2 +- layout/reftests/forms/select/focusring-3.html | 2 +- .../forms/select/vertical-centering-ref.html | 2 +- .../forms/select/vertical-centering.html | 2 +- .../reftests/forms/textarea/resize-ref.html | 2 +- layout/reftests/forms/textarea/resize.html | 2 +- .../setvalue-framereconstruction-1.html | 2 +- .../setvalue-framereconstruction-ref.html | 2 +- .../forms/textbox/accesskey-1-notref.xul | 2 +- layout/reftests/forms/textbox/accesskey-1.xul | 2 +- .../forms/textbox/accesskey-2-ref.xul | 2 +- layout/reftests/forms/textbox/accesskey-2.xul | 2 +- .../forms/textbox/accesskey-3-notref.xul | 2 +- .../forms/textbox/accesskey-3-ref.xul | 2 +- layout/reftests/forms/textbox/accesskey-3.xul | 2 +- .../forms/textbox/accesskey-4-notref.xul | 2 +- .../forms/textbox/accesskey-4-ref.xul | 2 +- layout/reftests/forms/textbox/accesskey-4.xul | 2 +- .../forms/textbox/align-baseline-1-ref.xul | 2 +- .../forms/textbox/align-baseline-1.xul | 2 +- layout/reftests/forms/textbox/reftest.list | 2 +- .../button-nonnative-when-styled-ref.html | 22 +++++----- .../native-theme/button-nonnative.html | 2 +- .../native-theme/checkbox-nonnative.html | 2 +- .../combobox-nonnative-when-styled-ref.html | 22 +++++----- .../native-theme/combobox-nonnative.html | 2 +- .../listbox-nonnative-when-styled-ref.html | 22 +++++----- .../native-theme/listbox-nonnative.html | 2 +- ...ive-theme-disabled-cascade-levels-ref.html | 8 ++-- .../native-theme/radio-nonnative.html | 2 +- layout/reftests/native-theme/reftest.list | 8 ++-- .../text-input-nonnative-when-styled-ref.html | 34 +++++++-------- .../native-theme/text-input-nonnative.html | 2 +- .../textarea-nonnative-when-styled-ref.html | 22 +++++----- .../native-theme/textarea-nonnative.html | 2 +- .../svg/foreignObject-form-no-theme.svg | 4 +- layout/reftests/svg/reftest.list | 2 +- ...erline-block-propagation-2-quirks-ref.html | 2 +- .../underline-block-propagation-2-quirks.html | 2 +- ...ine-block-propagation-2-standards-ref.html | 2 +- ...derline-block-propagation-2-standards.html | 2 +- .../text-overflow/combobox-zoom-ref.html | 2 +- .../reftests/text-overflow/combobox-zoom.html | 2 +- .../text/control-chars-01-notref.html | 2 +- layout/reftests/text/control-chars-01a.html | 2 +- layout/reftests/text/control-chars-01b.html | 2 +- layout/reftests/text/control-chars-01c.html | 2 +- layout/reftests/text/control-chars-01d.html | 2 +- .../unicode/unicode-attribute-selector.html | 2 +- .../unicode/unicode-element-selector.html | 2 +- layout/reftests/unicode/unicode-lang.html | 2 +- .../unicode/unicode-pseudo-selector.html | 2 +- layout/reftests/unicode/unicode-ref.html | 2 +- ...38356-1-button-contents-alignment-ref.html | 2 +- .../1138356-1-button-contents-alignment.html | 2 +- ...56-2-button-contents-alignment-notref.html | 2 +- .../1138356-2-button-contents-alignment.html | 2 +- layout/reftests/writing-mode/reftest.list | 2 +- .../writing-mode/ua-style-sheet-button-1.html | 2 +- .../ua-style-sheet-button-1a-ref.html | 2 +- .../ua-style-sheet-button-1b-ref.html | 2 +- .../ua-style-sheet-input-color-1-ref.html | 2 +- .../ua-style-sheet-input-color-1.html | 2 +- layout/style/nsCSSPropAliasList.h | 5 +++ layout/style/nsCSSPropList.h | 18 ++++++-- layout/style/nsCSSProps.cpp | 6 +++ layout/style/nsCSSProps.h | 1 + layout/style/nsComputedDOMStyle.cpp | 8 ++++ layout/style/nsComputedDOMStyle.h | 1 + layout/style/nsComputedDOMStylePropertyList.h | 3 +- layout/style/nsRuleNode.cpp | 11 ++++- layout/style/nsStyleStruct.cpp | 13 +++--- layout/style/nsStyleStruct.h | 14 +++++++ layout/style/res/forms.css | 2 +- layout/style/test/property_database.js | 39 ++++++++++++++---- .../style/test/test_pseudoelement_state.html | 14 +++---- layout/svg/crashtests/crashtests.list | 4 +- layout/tables/nsTableCellFrame.cpp | 2 +- layout/tables/nsTableFrame.cpp | 2 +- layout/xul/crashtests/189814-1.xul | 2 +- layout/xul/nsBox.cpp | 18 ++++---- layout/xul/nsBoxFrame.cpp | 2 +- layout/xul/nsImageBoxFrame.cpp | 6 +-- layout/xul/nsMenuPopupFrame.cpp | 2 +- layout/xul/reftest/reftest.list | 4 +- layout/xul/test/test_bug563416.html | 2 +- layout/xul/test/test_windowminmaxsize.xul | 8 ++-- layout/xul/tree/nsTreeBodyFrame.cpp | 20 ++++----- modules/libpref/init/all.js | 4 ++ .../tests/chrome/test_contextmenu_list.xul | 2 +- .../content/tests/chrome/test_position.xul | 6 +-- toolkit/content/tests/chrome/window_panel.xul | 4 +- .../tests/chrome/window_popup_anchor.xul | 2 +- .../content/tests/chrome/window_tooltip.xul | 6 +-- toolkit/content/tests/reftests/reftest.list | 2 +- toolkit/themes/osx/reftests/baseline.xul | 2 +- toolkit/themes/osx/reftests/reftest.list | 6 +-- view/crashtests/crashtests.list | 2 +- widget/cocoa/crashtests/crashtests.list | 8 ++-- widget/cocoa/nsNativeThemeCocoa.mm | 18 ++++---- widget/crashtests/crashtests.list | 2 +- widget/gtk/crashtests/crashtests.list | 2 +- widget/nsNativeTheme.cpp | 4 +- .../meter-fallback-default-style-ref.html | 4 +- .../meter-fallback-default-style.html | 4 +- ...rogressbar-fallback-default-style-ref.html | 8 ++-- .../progressbar-fallback-default-style.html | 4 +- widget/reftests/reftest.list | 8 ++-- widget/windows/nsNativeThemeWin.cpp | 2 +- 336 files changed, 695 insertions(+), 574 deletions(-) diff --git a/browser/base/content/test/general/browser_tab_dragdrop2_frame1.xul b/browser/base/content/test/general/browser_tab_dragdrop2_frame1.xul index d11709942ac0..cd33d58ac9fd 100644 --- a/browser/base/content/test/general/browser_tab_dragdrop2_frame1.xul +++ b/browser/base/content/test/general/browser_tab_dragdrop2_frame1.xul @@ -91,8 +91,8 @@ function createPanel(attrs) button.label = "OK"; button.width = 120; button.height = 40; - button.setAttribute("style", "-moz-appearance: none; border: 0; margin: 0;"); - panel.setAttribute("style", "-moz-appearance: none; border: 0; margin: 0;"); + button.setAttribute("style", "-moz-appearance: none; appearance: none; border: 0; margin: 0;"); + panel.setAttribute("style", "-moz-appearance: none; appearance: none; border: 0; margin: 0;"); return document.documentElement.appendChild(panel); } diff --git a/browser/base/content/test/static/browser_parsable_css.js b/browser/base/content/test/static/browser_parsable_css.js index e24a8ee62fb0..44b024b72ed1 100644 --- a/browser/base/content/test/static/browser_parsable_css.js +++ b/browser/base/content/test/static/browser_parsable_css.js @@ -20,10 +20,6 @@ let whitelist = [ {sourceName: /web\/viewer\.css$/i, errorMessage: /Unknown pseudo-class.*(fullscreen|selection)/i, isFromDevTools: false}, - // PDFjs rules needed for compat with other UAs. - {sourceName: /web\/viewer\.css$/i, - errorMessage: /Unknown property.*appearance/i, - isFromDevTools: false}, // Tracked in bug 1004428. {sourceName: /aboutaccounts\/(main|normalize)\.css$/i, isFromDevTools: false}, diff --git a/devtools/client/responsive.html/index.css b/devtools/client/responsive.html/index.css index 12966cd3a6d4..26884948a06d 100644 --- a/devtools/client/responsive.html/index.css +++ b/devtools/client/responsive.html/index.css @@ -80,7 +80,7 @@ body, } select { - -moz-appearance: none; + -moz-appearance: none; appearance: none; background-color: var(--theme-toolbar-background); background-image: var(--viewport-selection-arrow); -moz-context-properties: fill; diff --git a/devtools/client/sourceeditor/test/browser_css_getInfo.js b/devtools/client/sourceeditor/test/browser_css_getInfo.js index 9028d8fea189..7fdf80e8e2d8 100644 --- a/devtools/client/sourceeditor/test/browser_css_getInfo.js +++ b/devtools/client/sourceeditor/test/browser_css_getInfo.js @@ -9,14 +9,14 @@ const CSSCompleter = const source = [ ".devtools-toolbar {", - " -moz-appearance: none;", + " -moz-appearance: none; appearance: none;", " padding:4px 3px;border-bottom-width: 1px;", " border-bottom-style: solid;", "}", "", "#devtools-menu.devtools-menulist,", ".devtools-toolbarbutton#devtools-menu {", - " -moz-appearance: none;", + " -moz-appearance: none; appearance: none;", " -moz-box-align: center;", " min-width: 78px;", " min-height: 22px;", diff --git a/devtools/client/sourceeditor/test/css_statemachine_testcases.css b/devtools/client/sourceeditor/test/css_statemachine_testcases.css index b3149030fd3b..c7a7429b34f8 100644 --- a/devtools/client/sourceeditor/test/css_statemachine_testcases.css +++ b/devtools/client/sourceeditor/test/css_statemachine_testcases.css @@ -3,14 +3,14 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ .devtools-toolbar { - -moz-appearance: none; + -moz-appearance: none; appearance: none; padding:4px 3px;border-bottom-width: 1px; border-bottom-style: solid; } #devtools-menu.devtools-menulist, .devtools-toolbarbutton#devtools-menu { - -moz-appearance: none; + -moz-appearance: none; appearance: none; -moz-box-align: center; min-width: 78px; min-height: 22px; @@ -64,7 +64,7 @@ } .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button { - -moz-appearance: none; + -moz-appearance: none; appearance: none; } .devtools-sidebar-tabs > tabs > tab:first-of-type { diff --git a/devtools/client/sourceeditor/test/css_statemachine_tests.json b/devtools/client/sourceeditor/test/css_statemachine_tests.json index abe69f19e97e..66c819cb9162 100644 --- a/devtools/client/sourceeditor/test/css_statemachine_tests.json +++ b/devtools/client/sourceeditor/test/css_statemachine_tests.json @@ -19,8 +19,6 @@ "tests": [ [[0, 10], ["null", "", "", ""]], [[4, 3], ["selector", "class", "de", ".de"]], - [[5, 8], ["property", "null", "-moz-a"]], - [[5, 21], ["value", "null", "no", "-moz-appearance"]], [[6, 18], ["property", "null", "padding"]], [[6, 24], ["value", "null", "3", "padding"]], [[6, 29], ["property", "null", "bo"]], @@ -31,7 +29,6 @@ [[10, 17], ["selector", "class", "de", "#devtools-menu.de"]], [[11, 5], ["selector", "class", "devt", ".devt"]], [[11, 30], ["selector", "id", "devtoo", ".devtools-toolbarbutton#devtoo"]], - [[12, 10], ["property", "null", "-moz-app"]], [[16, 27], ["value", "null", "hsl", "text-shadow"]], [[19, 24], ["value", "null", "linear-gra", "background"]], [[19, 55], ["value", "null", "hsl", "background"]], diff --git a/devtools/client/themes/animationinspector.css b/devtools/client/themes/animationinspector.css index d767dff12154..7e4f8863ca4a 100644 --- a/devtools/client/themes/animationinspector.css +++ b/devtools/client/themes/animationinspector.css @@ -214,7 +214,7 @@ body { } #timeline-rate select.devtools-button { - -moz-appearance: none; + -moz-appearance: none; appearance: none; text-align: center; font-family: inherit; color: var(--theme-body-color); diff --git a/devtools/client/themes/commandline-browser.css b/devtools/client/themes/commandline-browser.css index 110b24fa9b39..17664332cb72 100644 --- a/devtools/client/themes/commandline-browser.css +++ b/devtools/client/themes/commandline-browser.css @@ -34,7 +34,7 @@ } #developer-toolbar { - -moz-appearance: none; + -moz-appearance: none; appearance: none; padding: 0; min-height: 32px; background-color: var(--gcli-background-color); @@ -42,7 +42,7 @@ } #developer-toolbar > toolbarbutton { - -moz-appearance: none; + -moz-appearance: none; appearance: none; border: none; background-color: transparent; margin: 0; @@ -123,6 +123,7 @@ html|*#gcli-output-frame { border-width: 0; background-color: transparent; -moz-appearance: none; + appearance: none; /* We always wanted this to be a percentage of the viewport size but width: x% does not * work. vw is the obvious solution. @@ -145,7 +146,7 @@ html|*#gcli-output-frame { } .gclitoolbar-input-node { - -moz-appearance: none; + -moz-appearance: none; appearance: none; color: var(--gcli-input-color); background-color: var(--gcli-input-background); background-repeat: no-repeat; diff --git a/devtools/client/themes/common.css b/devtools/client/themes/common.css index 3ce90000ab84..8f9550156532 100644 --- a/devtools/client/themes/common.css +++ b/devtools/client/themes/common.css @@ -70,7 +70,7 @@ html|button, html|select { } .devtools-autocomplete-listbox { - -moz-appearance: none !important; + -moz-appearance: none !important; appearance: none !important; background-color: transparent; border-width: 0px !important; margin: 0; @@ -229,7 +229,7 @@ checkbox:-moz-focusring { .devtools-menulist, .devtools-toolbarbutton, .devtools-button { - -moz-appearance: none; + -moz-appearance: none; appearance: none; background: transparent; border: 1px solid var(--toolbarbutton-border-color); border-radius: 2px; @@ -383,7 +383,7 @@ checkbox:-moz-focusring { .devtools-textinput, .devtools-searchinput, .devtools-filterinput { - -moz-appearance: none; + -moz-appearance: none; appearance: none; margin: 1px 3px; border: 1px solid; border-radius: 2px; diff --git a/devtools/client/themes/debugger.css b/devtools/client/themes/debugger.css index 3f2d49a0fa05..572299345272 100644 --- a/devtools/client/themes/debugger.css +++ b/devtools/client/themes/debugger.css @@ -62,7 +62,7 @@ /* Firebug theme uses breakpoint icon istead of a checkbox */ .theme-firebug #sources-pane .dbg-breakpoint-checkbox .checkbox-check { - -moz-appearance: none; + -moz-appearance: none; appearance: none; border: none; background: url(chrome://devtools/skin/images/firebug/breakpoint.svg) no-repeat 50% 50%; } @@ -327,7 +327,7 @@ } .dbg-expression-button { - -moz-appearance: none; + -moz-appearance: none; appearance: none; border: none; background: none; text-decoration: underline; diff --git a/devtools/client/themes/devtools-browser.css b/devtools/client/themes/devtools-browser.css index 59712e0c7814..68af7bfa0d80 100644 --- a/devtools/client/themes/devtools-browser.css +++ b/devtools/client/themes/devtools-browser.css @@ -20,7 +20,7 @@ .devtools-eyedropper-panel { pointer-events: none; - -moz-appearance: none; + -moz-appearance: none; appearance: none; width: 156px; height: 120px; background-color: transparent; diff --git a/devtools/client/themes/floating-scrollbars-dark-theme.css b/devtools/client/themes/floating-scrollbars-dark-theme.css index 042fe28cc299..a77e0af03819 100644 --- a/devtools/client/themes/floating-scrollbars-dark-theme.css +++ b/devtools/client/themes/floating-scrollbars-dark-theme.css @@ -7,7 +7,7 @@ well as any overflow: scroll elements within the page, while excluding . */ *|*:not(html|select) > scrollbar { - -moz-appearance: none !important; + -moz-appearance: none !important; appearance: none !important; position: relative; background-color: transparent; background-image: none; @@ -31,11 +31,11 @@ } *|*:not(html|select) > scrollbar slider { - -moz-appearance: none !important; + -moz-appearance: none !important; appearance: none !important; } *|*:not(html|select) > scrollbar thumb { - -moz-appearance: none !important; + -moz-appearance: none !important; appearance: none !important; background-color: rgba(0,0,0,0.2); border-width: 0px !important; border-radius: 3px !important; diff --git a/devtools/client/themes/new-webconsole.css b/devtools/client/themes/new-webconsole.css index 19099b23ec22..548c956fbc95 100644 --- a/devtools/client/themes/new-webconsole.css +++ b/devtools/client/themes/new-webconsole.css @@ -460,7 +460,7 @@ body { padding: 0; padding-inline-start: 20px; margin: 0; - -moz-appearance: none; + -moz-appearance: none; appearance: none; background-color: transparent; } diff --git a/devtools/client/themes/responsivedesign.css b/devtools/client/themes/responsivedesign.css index 16b9c8600e1e..8c20774d94fe 100644 --- a/devtools/client/themes/responsivedesign.css +++ b/devtools/client/themes/responsivedesign.css @@ -16,7 +16,7 @@ } .devtools-responsiveui-toolbar { - -moz-appearance: none; + -moz-appearance: none; appearance: none; background: transparent; /* text color is textColor from dark theme, since no theme is applied to * the responsive toolbar. @@ -29,7 +29,7 @@ } .devtools-responsiveui-textinput { - -moz-appearance: none; + -moz-appearance: none; appearance: none; background: #333; color: #fff; border: 1px solid #111; @@ -46,7 +46,7 @@ .devtools-responsiveui-menulist, .devtools-responsiveui-toolbarbutton { - -moz-appearance: none; + -moz-appearance: none; appearance: none; -moz-box-align: center; min-width: 32px; min-height: 22px; @@ -60,12 +60,12 @@ } .devtools-responsiveui-menulist .menulist-editable-box { - -moz-appearance: none; + -moz-appearance: none; appearance: none; background-color: transparent; } .devtools-responsiveui-menulist html|*.menulist-editable-input { - -moz-appearance: none; + -moz-appearance: none; appearance: none; color: inherit; text-align: center; } @@ -124,7 +124,7 @@ } .devtools-responsiveui-menulist > .menulist-dropmarker { - -moz-appearance: none; + -moz-appearance: none; appearance: none; display: -moz-box; background-color: transparent; list-style-image: url("chrome://devtools/skin/images/dropmarker.svg"); @@ -134,7 +134,7 @@ } .devtools-responsiveui-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button { - -moz-appearance: none; + -moz-appearance: none; appearance: none; color: inherit; border-width: 0; border-inline-end: 1px solid hsla(210,8%,5%,.45); @@ -152,7 +152,7 @@ .devtools-responsiveui-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker, .devtools-responsiveui-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-dropmarker { - -moz-appearance: none !important; + -moz-appearance: none !important; appearance: none !important; list-style-image: url("chrome://devtools/skin/images/dropmarker.svg"); -moz-box-align: center; padding: 0 3px; @@ -266,7 +266,7 @@ } .devtools-responsiveui-hardware-buttons { - -moz-appearance: none; + -moz-appearance: none; appearance: none; padding: 20px; border: 1px solid #FFFFFF; @@ -288,7 +288,7 @@ .devtools-responsiveui-sleep-button { -moz-user-focus: ignore; - -moz-appearance: none; + -moz-appearance: none; appearance: none; /* compensate browserStack top padding */ margin-top: -67px; margin-right: 10px; @@ -316,7 +316,7 @@ .devtools-responsiveui-volume-up-button, .devtools-responsiveui-volume-down-button { -moz-user-focus: ignore; - -moz-appearance: none; + -moz-appearance: none; appearance: none; border: 1px solid red; min-width: 8px; height: 40px; diff --git a/devtools/client/themes/shadereditor.css b/devtools/client/themes/shadereditor.css index 53ef94235a37..42f986aaeed6 100644 --- a/devtools/client/themes/shadereditor.css +++ b/devtools/client/themes/shadereditor.css @@ -28,7 +28,7 @@ } .side-menu-widget-item-checkbox { - -moz-appearance: none; + -moz-appearance: none; appearance: none; opacity: 0; transition: opacity .15s ease-out 0s; } @@ -43,7 +43,7 @@ } .side-menu-widget-item-checkbox .checkbox-check { - -moz-appearance: none; + -moz-appearance: none; appearance: none; background-image: url(images/item-toggle.svg); background-color: transparent; width: 16px; diff --git a/devtools/client/themes/splitters.css b/devtools/client/themes/splitters.css index aa6f505dcd37..1f19f6ad961b 100644 --- a/devtools/client/themes/splitters.css +++ b/devtools/client/themes/splitters.css @@ -31,7 +31,7 @@ .devtools-horizontal-splitter, .devtools-side-splitter { - -moz-appearance: none; + -moz-appearance: none; appearance: none; background-image: none; border: 0; border-style: solid; diff --git a/devtools/client/themes/toolbars.css b/devtools/client/themes/toolbars.css index d606e61b543c..532fbf476238 100644 --- a/devtools/client/themes/toolbars.css +++ b/devtools/client/themes/toolbars.css @@ -90,13 +90,13 @@ /* In-tools sidebar */ .devtools-sidebar-tabs { - -moz-appearance: none; + -moz-appearance: none; appearance: none; margin: 0; height: 100%; } .devtools-sidebar-tabs > tabpanels { - -moz-appearance: none; + -moz-appearance: none; appearance: none; background: transparent; padding: 0; border: 0; @@ -115,7 +115,7 @@ } .devtools-sidebar-alltabs { - -moz-appearance: none; + -moz-appearance: none; appearance: none; height: 24px; line-height: 24px; padding: 0 4px; @@ -135,7 +135,7 @@ } .devtools-sidebar-tabs tabs > tab { - -moz-appearance: none; + -moz-appearance: none; appearance: none; /* We want to match the height of a toolbar with a toolbarbutton * First, we need to replicated the padding of toolbar (4px), * then we need to take the border of the buttons into account (1px). diff --git a/devtools/client/themes/toolbox.css b/devtools/client/themes/toolbox.css index 458bf6319443..41371ea39189 100644 --- a/devtools/client/themes/toolbox.css +++ b/devtools/client/themes/toolbox.css @@ -42,7 +42,7 @@ /* Toolbox tabbar */ .devtools-tabbar { - -moz-appearance: none; + -moz-appearance: none; appearance: none; min-height: 24px; border: 0px solid; border-bottom-width: 1px; diff --git a/devtools/client/themes/tooltips.css b/devtools/client/themes/tooltips.css index 4e37c3a3155f..b8f2f5648348 100644 --- a/devtools/client/themes/tooltips.css +++ b/devtools/client/themes/tooltips.css @@ -109,7 +109,7 @@ } .tooltip-xul-wrapper { - -moz-appearance: none; + -moz-appearance: none; appearance: none; background: transparent; overflow: visible; border-style: none; diff --git a/devtools/client/themes/webaudioeditor.css b/devtools/client/themes/webaudioeditor.css index 3ba9dad88c28..e28f54ed0cdb 100644 --- a/devtools/client/themes/webaudioeditor.css +++ b/devtools/client/themes/webaudioeditor.css @@ -125,7 +125,7 @@ text { .web-audio-inspector .error { background-image: url(images/alerticon-warning.png); background-size: 13px 12px; - -moz-appearance: none; + -moz-appearance: none; appearance: none; opacity: 0; transition: opacity .5s ease-out 0s; } diff --git a/devtools/client/themes/webconsole.css b/devtools/client/themes/webconsole.css index 79352703451f..be5458e6b443 100644 --- a/devtools/client/themes/webconsole.css +++ b/devtools/client/themes/webconsole.css @@ -424,7 +424,7 @@ a { padding: 0; padding-inline-start: 20px; margin: 0; - -moz-appearance: none; + -moz-appearance: none; appearance: none; background-color: transparent; } diff --git a/devtools/client/themes/widgets.css b/devtools/client/themes/widgets.css index c46ff2c2e4cc..091bba9ce0b8 100644 --- a/devtools/client/themes/widgets.css +++ b/devtools/client/themes/widgets.css @@ -123,7 +123,7 @@ .scrollbutton-up, .scrollbutton-down { - -moz-appearance: none; + -moz-appearance: none; appearance: none; background: transparent; box-shadow: none; border: none; @@ -134,7 +134,7 @@ .scrollbutton-up > .toolbarbutton-icon, .scrollbutton-down > .toolbarbutton-icon { - -moz-appearance: none; + -moz-appearance: none; appearance: none; width: 7px; height: 16px; background-size: 14px 16px; @@ -197,7 +197,7 @@ .breadcrumbs-widget-item { background-color: transparent; - -moz-appearance: none; + -moz-appearance: none; appearance: none; min-height: 24px; min-width: 65px; margin: 0; diff --git a/devtools/shared/css/generated/properties-db.js b/devtools/shared/css/generated/properties-db.js index 2bd29374f93e..8da8d7417aff 100644 --- a/devtools/shared/css/generated/properties-db.js +++ b/devtools/shared/css/generated/properties-db.js @@ -1746,6 +1746,20 @@ exports.CSS_PROPERTIES = { "unset" ] }, + "-webkit-appearance": { + "isInherited": false, + "subproperties": [ + "appearance" + ], + "supports": [], + "values": [ + "auto", + "inherit", + "initial", + "none", + "unset" + ] + }, "-webkit-backface-visibility": { "isInherited": false, "subproperties": [ @@ -2858,6 +2872,7 @@ exports.CSS_PROPERTIES = { "animation-play-state", "animation-timing-function", "-moz-appearance", + "appearance", "backface-visibility", "background-attachment", "background-blend-mode", @@ -3889,6 +3904,20 @@ exports.CSS_PROPERTIES = { "unset" ] }, + "appearance": { + "isInherited": false, + "subproperties": [ + "appearance" + ], + "supports": [], + "values": [ + "auto", + "inherit", + "initial", + "none", + "unset" + ] + }, "backface-visibility": { "isInherited": false, "subproperties": [ @@ -9792,6 +9821,14 @@ exports.PREFERENCES = [ "all", "layout.css.all-shorthand.enabled" ], + [ + "-moz-appearance", + "layout.css.moz-appearance.enabled" + ], + [ + "appearance", + "layout.css.appearance.enabled" + ], [ "background-blend-mode", "layout.css.background-blend-mode.enabled" @@ -10116,6 +10153,10 @@ exports.PREFERENCES = [ "-webkit-animation-timing-function", "layout.css.prefixes.webkit" ], + [ + "-webkit-appearance", + "layout.css.appearance.enabled" + ], [ "-webkit-filter", "layout.css.prefixes.webkit" diff --git a/dom/animation/test/mozilla/file_discrete-animations.html b/dom/animation/test/mozilla/file_discrete-animations.html index 8820365a727c..f183b1873bd1 100644 --- a/dom/animation/test/mozilla/file_discrete-animations.html +++ b/dom/animation/test/mozilla/file_discrete-animations.html @@ -9,11 +9,6 @@ "use strict"; const gMozillaSpecificProperties = { - "-moz-appearance": { - // https://drafts.csswg.org/css-align/#propdef-align-content - from: "button", - to: "none" - }, "-moz-border-bottom-colors": { from: "rgb(255, 0, 0) rgb(255, 0, 0) rgb(255, 0, 0) rgb(255, 0, 0)", to: "rgb(0, 255, 0) rgb(0, 255, 0) rgb(0, 255, 0) rgb(0, 255, 0)" diff --git a/dom/base/test/test_caretPositionFromPoint.html b/dom/base/test/test_caretPositionFromPoint.html index 50f12b1ef67f..d13ffd175ca4 100644 --- a/dom/base/test/test_caretPositionFromPoint.html +++ b/dom/base/test/test_caretPositionFromPoint.html @@ -27,7 +27,7 @@ } textarea, input { - -moz-appearance: none; + -moz-appearance: none; appearance: none; } - + - + - + - + - + - - - - 4 - 4 diff --git a/layout/base/tests/bug613807-1-ref.html b/layout/base/tests/bug613807-1-ref.html index b47a572ea70b..eb7e96a1f5d1 100644 --- a/layout/base/tests/bug613807-1-ref.html +++ b/layout/base/tests/bug613807-1-ref.html @@ -1,6 +1,6 @@ - + diff --git a/layout/base/tests/bug613807-1.html b/layout/base/tests/bug613807-1.html index 145ea5603ca1..463654e2cfdb 100644 --- a/layout/base/tests/bug613807-1.html +++ b/layout/base/tests/bug613807-1.html @@ -4,7 +4,7 @@ - + - + - + - + - - + - - + diff --git a/layout/base/tests/test_bug332655-1.html b/layout/base/tests/test_bug332655-1.html index 8110cbfd3646..d2634d035cc0 100644 --- a/layout/base/tests/test_bug332655-1.html +++ b/layout/base/tests/test_bug332655-1.html @@ -15,7 +15,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=332655

+ style="-moz-appearance: none; appearance: none">
 
 
   
-    
       
       
     
diff --git a/layout/forms/test/test_bug476308.html b/layout/forms/test/test_bug476308.html
index d8f572803553..4160890d100a 100644
--- a/layout/forms/test/test_bug476308.html
+++ b/layout/forms/test/test_bug476308.html
@@ -11,7 +11,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=476308
 
 
 
-
 
 
diff --git a/layout/forms/test/test_textarea_resize.html b/layout/forms/test/test_textarea_resize.html index c71f554e0dd0..6b2d7aeed250 100644 --- a/layout/forms/test/test_textarea_resize.html +++ b/layout/forms/test/test_textarea_resize.html @@ -10,7 +10,7 @@ - +
 
+
diff --git a/layout/reftests/forms/input/checkbox/indeterminate-unchecked-notref.html b/layout/reftests/forms/input/checkbox/indeterminate-unchecked-notref.html
index 1055cbef1484..3edcaedf3f73 100644
--- a/layout/reftests/forms/input/checkbox/indeterminate-unchecked-notref.html
+++ b/layout/reftests/forms/input/checkbox/indeterminate-unchecked-notref.html
@@ -1 +1 @@
-
+
diff --git a/layout/reftests/forms/input/checkbox/indeterminate-unchecked.html b/layout/reftests/forms/input/checkbox/indeterminate-unchecked.html
index 56a8d0955a61..597fa3339ce2 100644
--- a/layout/reftests/forms/input/checkbox/indeterminate-unchecked.html
+++ b/layout/reftests/forms/input/checkbox/indeterminate-unchecked.html
@@ -1 +1 @@
-
+
diff --git a/layout/reftests/forms/input/checkbox/unchecked-appearance-none.html b/layout/reftests/forms/input/checkbox/unchecked-appearance-none.html
index 8e5b55cfb7db..931e1e684d3f 100644
--- a/layout/reftests/forms/input/checkbox/unchecked-appearance-none.html
+++ b/layout/reftests/forms/input/checkbox/unchecked-appearance-none.html
@@ -1,2 +1,2 @@
 
-
+
diff --git a/layout/reftests/forms/input/color/reftest.list b/layout/reftests/forms/input/color/reftest.list
index 33ed23a223e0..0d29dd62ccfb 100644
--- a/layout/reftests/forms/input/color/reftest.list
+++ b/layout/reftests/forms/input/color/reftest.list
@@ -10,5 +10,5 @@ fails-if(Android) == margin-padding-1.html margin-padding-1-ref.html
 == block-invalidate-1.html block-invalidate-1-ref.html
 == block-invalidate-2.html block-invalidate-2-ref.html
 fuzzy-if(gtkWidget,8,33) fuzzy-if(skiaContent,8,78) fails-if(Android) == transformations-1.html transformations-1-ref.html
-fails-if(Android) == custom-style-1.html custom-style-1-ref.html
+pref(layout.css.moz-appearance.enabled,true) fails-if(Android) == custom-style-1.html custom-style-1-ref.html
 fails-if(Android) == custom-style-2.html custom-style-2-ref.html
diff --git a/layout/reftests/forms/input/datetime/from-time-to-other-type-unthemed-ref.html b/layout/reftests/forms/input/datetime/from-time-to-other-type-unthemed-ref.html
index ffb5ffa58daf..fa9e0494ab21 100644
--- a/layout/reftests/forms/input/datetime/from-time-to-other-type-unthemed-ref.html
+++ b/layout/reftests/forms/input/datetime/from-time-to-other-type-unthemed-ref.html
@@ -1,6 +1,6 @@
 
 
   
-    
+    
   
 
diff --git a/layout/reftests/forms/input/datetime/from-time-to-other-type-unthemed.html b/layout/reftests/forms/input/datetime/from-time-to-other-type-unthemed.html
index 31b804602a80..551683b45a43 100644
--- a/layout/reftests/forms/input/datetime/from-time-to-other-type-unthemed.html
+++ b/layout/reftests/forms/input/datetime/from-time-to-other-type-unthemed.html
@@ -11,6 +11,6 @@
     document.addEventListener("MozReftestInvalidate", setToCheckbox);
   
   
-    
+    
   
 
diff --git a/layout/reftests/forms/input/datetime/time-simple-unthemed-ref.html b/layout/reftests/forms/input/datetime/time-simple-unthemed-ref.html
index 24dccffeae6a..499382312022 100644
--- a/layout/reftests/forms/input/datetime/time-simple-unthemed-ref.html
+++ b/layout/reftests/forms/input/datetime/time-simple-unthemed-ref.html
@@ -1,6 +1,6 @@
 
 
   
-    
+    
   
 
diff --git a/layout/reftests/forms/input/datetime/time-simple-unthemed.html b/layout/reftests/forms/input/datetime/time-simple-unthemed.html
index 023456723306..eebb95775203 100644
--- a/layout/reftests/forms/input/datetime/time-simple-unthemed.html
+++ b/layout/reftests/forms/input/datetime/time-simple-unthemed.html
@@ -1,6 +1,6 @@
 
 
   
-    
+    
   
 
diff --git a/layout/reftests/forms/input/datetime/to-time-from-other-type-unthemed.html b/layout/reftests/forms/input/datetime/to-time-from-other-type-unthemed.html
index 1ae398f4c32e..c12d65e6ba40 100644
--- a/layout/reftests/forms/input/datetime/to-time-from-other-type-unthemed.html
+++ b/layout/reftests/forms/input/datetime/to-time-from-other-type-unthemed.html
@@ -10,6 +10,6 @@
     document.addEventListener("MozReftestInvalidate", setToTime);
   
   
-    
+    
   
 
diff --git a/layout/reftests/forms/input/file/style.css b/layout/reftests/forms/input/file/style.css
index 18be345bbe84..5d1171df8876 100644
--- a/layout/reftests/forms/input/file/style.css
+++ b/layout/reftests/forms/input/file/style.css
@@ -23,7 +23,7 @@ vbox, hbox {
   white-space: nowrap;
   overflow:hidden;
 
-  -moz-appearance: none;
+  -moz-appearance: none; appearance: none;
   -moz-binding: none;
   cursor: default;
   border: none;
diff --git a/layout/reftests/forms/input/number/focus-handling-ref.html b/layout/reftests/forms/input/number/focus-handling-ref.html
index e07f83f993e8..8ed6d0f6f28a 100644
--- a/layout/reftests/forms/input/number/focus-handling-ref.html
+++ b/layout/reftests/forms/input/number/focus-handling-ref.html
@@ -17,9 +17,9 @@ function end() {
     
   
   
-    
+
+ style="-moz-appearance:none; appearance: none;">
diff --git a/layout/reftests/forms/input/number/focus-handling.html b/layout/reftests/forms/input/number/focus-handling.html index b54f83a56631..15358b9aaa06 100644 --- a/layout/reftests/forms/input/number/focus-handling.html +++ b/layout/reftests/forms/input/number/focus-handling.html @@ -22,9 +22,9 @@ function end() {
+ style="-moz-appearance:none; appearance: none;">
+ style="-moz-appearance:none; appearance: none;">
diff --git a/layout/reftests/forms/input/number/from-number-to-other-type-unthemed-1-ref.html b/layout/reftests/forms/input/number/from-number-to-other-type-unthemed-1-ref.html index ffb5ffa58daf..fa9e0494ab21 100644 --- a/layout/reftests/forms/input/number/from-number-to-other-type-unthemed-1-ref.html +++ b/layout/reftests/forms/input/number/from-number-to-other-type-unthemed-1-ref.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/number/from-number-to-other-type-unthemed-1.html b/layout/reftests/forms/input/number/from-number-to-other-type-unthemed-1.html index 561b39bec3cd..de7b1f0b4164 100644 --- a/layout/reftests/forms/input/number/from-number-to-other-type-unthemed-1.html +++ b/layout/reftests/forms/input/number/from-number-to-other-type-unthemed-1.html @@ -11,6 +11,6 @@ document.addEventListener("MozReftestInvalidate", setToCheckbox); - + diff --git a/layout/reftests/forms/input/number/not-other-type-unthemed-1.html b/layout/reftests/forms/input/number/not-other-type-unthemed-1.html index 7f0d427b410e..206d501b8af3 100644 --- a/layout/reftests/forms/input/number/not-other-type-unthemed-1.html +++ b/layout/reftests/forms/input/number/not-other-type-unthemed-1.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/number/not-other-type-unthemed-1a-notref.html b/layout/reftests/forms/input/number/not-other-type-unthemed-1a-notref.html index 7c5a4dcaca27..c4da46652c7b 100644 --- a/layout/reftests/forms/input/number/not-other-type-unthemed-1a-notref.html +++ b/layout/reftests/forms/input/number/not-other-type-unthemed-1a-notref.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/number/not-other-type-unthemed-1b-notref.html b/layout/reftests/forms/input/number/not-other-type-unthemed-1b-notref.html index ffb5ffa58daf..fa9e0494ab21 100644 --- a/layout/reftests/forms/input/number/not-other-type-unthemed-1b-notref.html +++ b/layout/reftests/forms/input/number/not-other-type-unthemed-1b-notref.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/number/number-auto-width-1-ref.html b/layout/reftests/forms/input/number/number-auto-width-1-ref.html index 50b7b7e04b9c..202a4449cbd8 100644 --- a/layout/reftests/forms/input/number/number-auto-width-1-ref.html +++ b/layout/reftests/forms/input/number/number-auto-width-1-ref.html @@ -1,7 +1,7 @@ - +
diff --git a/layout/reftests/forms/input/number/number-auto-width-1.html b/layout/reftests/forms/input/number/number-auto-width-1.html index 5c9cc0abed76..9fc7655fbfa1 100644 --- a/layout/reftests/forms/input/number/number-auto-width-1.html +++ b/layout/reftests/forms/input/number/number-auto-width-1.html @@ -1,7 +1,7 @@ - +
diff --git a/layout/reftests/forms/input/number/number-disabled-ref.html b/layout/reftests/forms/input/number/number-disabled-ref.html index f3c9d4d56222..0887a7952092 100644 --- a/layout/reftests/forms/input/number/number-disabled-ref.html +++ b/layout/reftests/forms/input/number/number-disabled-ref.html @@ -2,7 +2,7 @@ + style="-moz-appearance: none; appearance: none">
diff --git a/layout/reftests/forms/input/number/number-disabled.html b/layout/reftests/forms/input/number/number-disabled.html index b4acb20a754d..30b744d24bda 100644 --- a/layout/reftests/forms/input/number/number-disabled.html +++ b/layout/reftests/forms/input/number/number-disabled.html @@ -2,7 +2,7 @@ + style="-moz-appearance: none; appearance: none">
diff --git a/layout/reftests/forms/input/number/number-pseudo-elements-ref.html b/layout/reftests/forms/input/number/number-pseudo-elements-ref.html index 263aeff1f81e..3698a11e9567 100644 --- a/layout/reftests/forms/input/number/number-pseudo-elements-ref.html +++ b/layout/reftests/forms/input/number/number-pseudo-elements-ref.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/number/number-pseudo-elements.html b/layout/reftests/forms/input/number/number-pseudo-elements.html index 33cf40fcf247..7a25dec2e3e2 100644 --- a/layout/reftests/forms/input/number/number-pseudo-elements.html +++ b/layout/reftests/forms/input/number/number-pseudo-elements.html @@ -15,6 +15,6 @@ input[type=number]::-moz-number-spin-down { - + diff --git a/layout/reftests/forms/input/number/number-same-as-text-unthemed-ref.html b/layout/reftests/forms/input/number/number-same-as-text-unthemed-ref.html index ceaa14d85d0e..e30649d39415 100644 --- a/layout/reftests/forms/input/number/number-same-as-text-unthemed-ref.html +++ b/layout/reftests/forms/input/number/number-same-as-text-unthemed-ref.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/number/number-same-as-text-unthemed.html b/layout/reftests/forms/input/number/number-same-as-text-unthemed.html index fddcc33eb0bc..874b2c640ec4 100644 --- a/layout/reftests/forms/input/number/number-same-as-text-unthemed.html +++ b/layout/reftests/forms/input/number/number-same-as-text-unthemed.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/number/number-similar-to-text-unthemed-ref.html b/layout/reftests/forms/input/number/number-similar-to-text-unthemed-ref.html index abb0b240dc74..99cad67de855 100644 --- a/layout/reftests/forms/input/number/number-similar-to-text-unthemed-ref.html +++ b/layout/reftests/forms/input/number/number-similar-to-text-unthemed-ref.html @@ -1,7 +1,7 @@ - +
diff --git a/layout/reftests/forms/input/number/number-similar-to-text-unthemed-rtl-ref.html b/layout/reftests/forms/input/number/number-similar-to-text-unthemed-rtl-ref.html index 79644edc8b1d..478459632256 100644 --- a/layout/reftests/forms/input/number/number-similar-to-text-unthemed-rtl-ref.html +++ b/layout/reftests/forms/input/number/number-similar-to-text-unthemed-rtl-ref.html @@ -1,7 +1,7 @@ - +
diff --git a/layout/reftests/forms/input/number/number-similar-to-text-unthemed-rtl.html b/layout/reftests/forms/input/number/number-similar-to-text-unthemed-rtl.html index 36ffc062993d..2eddbf9e9823 100644 --- a/layout/reftests/forms/input/number/number-similar-to-text-unthemed-rtl.html +++ b/layout/reftests/forms/input/number/number-similar-to-text-unthemed-rtl.html @@ -1,7 +1,7 @@ - +
diff --git a/layout/reftests/forms/input/number/number-similar-to-text-unthemed-vertical-lr-ref.html b/layout/reftests/forms/input/number/number-similar-to-text-unthemed-vertical-lr-ref.html index 6deed489163b..1f9c7166db48 100644 --- a/layout/reftests/forms/input/number/number-similar-to-text-unthemed-vertical-lr-ref.html +++ b/layout/reftests/forms/input/number/number-similar-to-text-unthemed-vertical-lr-ref.html @@ -1,7 +1,7 @@ - +
diff --git a/layout/reftests/forms/input/number/number-similar-to-text-unthemed-vertical-lr.html b/layout/reftests/forms/input/number/number-similar-to-text-unthemed-vertical-lr.html index 7a78830629d5..9483830cfc0d 100644 --- a/layout/reftests/forms/input/number/number-similar-to-text-unthemed-vertical-lr.html +++ b/layout/reftests/forms/input/number/number-similar-to-text-unthemed-vertical-lr.html @@ -1,7 +1,7 @@ - +
diff --git a/layout/reftests/forms/input/number/number-similar-to-text-unthemed-vertical-rl-ref.html b/layout/reftests/forms/input/number/number-similar-to-text-unthemed-vertical-rl-ref.html index 73a537387727..839f1505693a 100644 --- a/layout/reftests/forms/input/number/number-similar-to-text-unthemed-vertical-rl-ref.html +++ b/layout/reftests/forms/input/number/number-similar-to-text-unthemed-vertical-rl-ref.html @@ -1,7 +1,7 @@ - +
diff --git a/layout/reftests/forms/input/number/number-similar-to-text-unthemed-vertical-rl.html b/layout/reftests/forms/input/number/number-similar-to-text-unthemed-vertical-rl.html index 3bc3a388a16a..fdfc4cbd5132 100644 --- a/layout/reftests/forms/input/number/number-similar-to-text-unthemed-vertical-rl.html +++ b/layout/reftests/forms/input/number/number-similar-to-text-unthemed-vertical-rl.html @@ -1,7 +1,7 @@ - +
diff --git a/layout/reftests/forms/input/number/number-similar-to-text-unthemed.html b/layout/reftests/forms/input/number/number-similar-to-text-unthemed.html index f8c2ce65da9d..f125a3dd4cae 100644 --- a/layout/reftests/forms/input/number/number-similar-to-text-unthemed.html +++ b/layout/reftests/forms/input/number/number-similar-to-text-unthemed.html @@ -1,7 +1,7 @@ - +
diff --git a/layout/reftests/forms/input/number/reftest.list b/layout/reftests/forms/input/number/reftest.list index dead812bebd6..d14b7004f0db 100644 --- a/layout/reftests/forms/input/number/reftest.list +++ b/layout/reftests/forms/input/number/reftest.list @@ -27,10 +27,10 @@ fuzzy-if(skiaContent,2,13) == show-value.html show-value-ref.html == number-auto-width-1.html number-auto-width-1-ref.html # min-height/max-height tests: -skip-if(Android) == number-min-height-1.html number-min-height-1-ref.html -skip-if(Android) == number-min-height-2.html number-min-height-2-ref.html -skip-if(Android) == number-max-height-1.html number-max-height-1-ref.html -skip-if(Android) == number-max-height-2.html number-max-height-2-ref.html +pref(layout.css.moz-appearance.enabled,true) skip-if(Android) == number-min-height-1.html number-min-height-1-ref.html +pref(layout.css.moz-appearance.enabled,true) skip-if(Android) == number-min-height-2.html number-min-height-2-ref.html +pref(layout.css.moz-appearance.enabled,true) skip-if(Android) == number-max-height-1.html number-max-height-1-ref.html +pref(layout.css.moz-appearance.enabled,true) skip-if(Android) == number-max-height-2.html number-max-height-2-ref.html # number of significant fractional digits: == number-significant-fractional-digits.html number-significant-fractional-digits-ref.html @@ -54,4 +54,4 @@ fuzzy(128,4) == number-reframe-anon-text-field.html number-reframe-anon-text-fie == pseudo-classes.html about:blank # Style inheritance: -== number-style-inheritance.html number-style-inheritance-ref.html +pref(layout.css.moz-appearance.enabled,true) == number-style-inheritance.html number-style-inheritance-ref.html diff --git a/layout/reftests/forms/input/number/show-value-ref.html b/layout/reftests/forms/input/number/show-value-ref.html index c3d2c5564cca..22c0700088cc 100644 --- a/layout/reftests/forms/input/number/show-value-ref.html +++ b/layout/reftests/forms/input/number/show-value-ref.html @@ -5,7 +5,7 @@ diff --git a/layout/reftests/forms/input/number/show-value.html b/layout/reftests/forms/input/number/show-value.html index 5aae9922e8f8..7347d8d56d4d 100644 --- a/layout/reftests/forms/input/number/show-value.html +++ b/layout/reftests/forms/input/number/show-value.html @@ -5,7 +5,7 @@ diff --git a/layout/reftests/forms/input/number/to-number-from-other-type-unthemed-1-ref.html b/layout/reftests/forms/input/number/to-number-from-other-type-unthemed-1-ref.html index 263aeff1f81e..3698a11e9567 100644 --- a/layout/reftests/forms/input/number/to-number-from-other-type-unthemed-1-ref.html +++ b/layout/reftests/forms/input/number/to-number-from-other-type-unthemed-1-ref.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/number/to-number-from-other-type-unthemed-1.html b/layout/reftests/forms/input/number/to-number-from-other-type-unthemed-1.html index b0beffa56cbe..ca0b18c147e7 100644 --- a/layout/reftests/forms/input/number/to-number-from-other-type-unthemed-1.html +++ b/layout/reftests/forms/input/number/to-number-from-other-type-unthemed-1.html @@ -10,6 +10,6 @@ document.addEventListener("MozReftestInvalidate", setToNumber); - + diff --git a/layout/reftests/forms/input/radio/checked-appearance-none.html b/layout/reftests/forms/input/radio/checked-appearance-none.html index 37aed5826ea5..fdfc81cc7510 100644 --- a/layout/reftests/forms/input/radio/checked-appearance-none.html +++ b/layout/reftests/forms/input/radio/checked-appearance-none.html @@ -1,2 +1,2 @@ - + diff --git a/layout/reftests/forms/input/radio/unchecked-appearance-none.html b/layout/reftests/forms/input/radio/unchecked-appearance-none.html index e30a1ef39610..3ef385b09cbd 100644 --- a/layout/reftests/forms/input/radio/unchecked-appearance-none.html +++ b/layout/reftests/forms/input/radio/unchecked-appearance-none.html @@ -1,2 +1,2 @@ - + diff --git a/layout/reftests/forms/input/range/75pct-unthemed-common-ref.html b/layout/reftests/forms/input/range/75pct-unthemed-common-ref.html index a4b73e23ad6b..d920086c3a8f 100644 --- a/layout/reftests/forms/input/range/75pct-unthemed-common-ref.html +++ b/layout/reftests/forms/input/range/75pct-unthemed-common-ref.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/range/different-fraction-of-range-unthemed-1-notref.html b/layout/reftests/forms/input/range/different-fraction-of-range-unthemed-1-notref.html index 3103fc721974..402229e0a2f7 100644 --- a/layout/reftests/forms/input/range/different-fraction-of-range-unthemed-1-notref.html +++ b/layout/reftests/forms/input/range/different-fraction-of-range-unthemed-1-notref.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/range/different-fraction-of-range-unthemed-1.html b/layout/reftests/forms/input/range/different-fraction-of-range-unthemed-1.html index d9514542f50f..721335a9d48c 100644 --- a/layout/reftests/forms/input/range/different-fraction-of-range-unthemed-1.html +++ b/layout/reftests/forms/input/range/different-fraction-of-range-unthemed-1.html @@ -2,6 +2,6 @@ - + diff --git a/layout/reftests/forms/input/range/direction-unthemed-1-ref.html b/layout/reftests/forms/input/range/direction-unthemed-1-ref.html index f2758db17c13..494e2d85dd76 100644 --- a/layout/reftests/forms/input/range/direction-unthemed-1-ref.html +++ b/layout/reftests/forms/input/range/direction-unthemed-1-ref.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/range/direction-unthemed-1.html b/layout/reftests/forms/input/range/direction-unthemed-1.html index 162d55504323..2f7b0abffbf6 100644 --- a/layout/reftests/forms/input/range/direction-unthemed-1.html +++ b/layout/reftests/forms/input/range/direction-unthemed-1.html @@ -2,6 +2,6 @@ - + diff --git a/layout/reftests/forms/input/range/from-range-to-other-type-unthemed-1-ref.html b/layout/reftests/forms/input/range/from-range-to-other-type-unthemed-1-ref.html index ffb5ffa58daf..fa9e0494ab21 100644 --- a/layout/reftests/forms/input/range/from-range-to-other-type-unthemed-1-ref.html +++ b/layout/reftests/forms/input/range/from-range-to-other-type-unthemed-1-ref.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/range/from-range-to-other-type-unthemed-1.html b/layout/reftests/forms/input/range/from-range-to-other-type-unthemed-1.html index 0e1fffaf1478..7108badbd961 100644 --- a/layout/reftests/forms/input/range/from-range-to-other-type-unthemed-1.html +++ b/layout/reftests/forms/input/range/from-range-to-other-type-unthemed-1.html @@ -11,6 +11,6 @@ document.addEventListener("MozReftestInvalidate", setToCheckbox); - + diff --git a/layout/reftests/forms/input/range/not-other-type-unthemed-1.html b/layout/reftests/forms/input/range/not-other-type-unthemed-1.html index 3103fc721974..402229e0a2f7 100644 --- a/layout/reftests/forms/input/range/not-other-type-unthemed-1.html +++ b/layout/reftests/forms/input/range/not-other-type-unthemed-1.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/range/not-other-type-unthemed-1a-notref.html b/layout/reftests/forms/input/range/not-other-type-unthemed-1a-notref.html index 24dccffeae6a..499382312022 100644 --- a/layout/reftests/forms/input/range/not-other-type-unthemed-1a-notref.html +++ b/layout/reftests/forms/input/range/not-other-type-unthemed-1a-notref.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/range/not-other-type-unthemed-1b-notref.html b/layout/reftests/forms/input/range/not-other-type-unthemed-1b-notref.html index 8bf48f7e981e..78c4e4ff49c3 100644 --- a/layout/reftests/forms/input/range/not-other-type-unthemed-1b-notref.html +++ b/layout/reftests/forms/input/range/not-other-type-unthemed-1b-notref.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/range/not-other-type-unthemed-1c-notref.html b/layout/reftests/forms/input/range/not-other-type-unthemed-1c-notref.html index ffb5ffa58daf..fa9e0494ab21 100644 --- a/layout/reftests/forms/input/range/not-other-type-unthemed-1c-notref.html +++ b/layout/reftests/forms/input/range/not-other-type-unthemed-1c-notref.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/range/same-fraction-of-range-unthemed-1-ref.html b/layout/reftests/forms/input/range/same-fraction-of-range-unthemed-1-ref.html index 6aefd17bca29..ec7287594f65 100644 --- a/layout/reftests/forms/input/range/same-fraction-of-range-unthemed-1-ref.html +++ b/layout/reftests/forms/input/range/same-fraction-of-range-unthemed-1-ref.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/range/same-fraction-of-range-unthemed-1.html b/layout/reftests/forms/input/range/same-fraction-of-range-unthemed-1.html index 3c9f0e7ce3e5..26b539a7480b 100644 --- a/layout/reftests/forms/input/range/same-fraction-of-range-unthemed-1.html +++ b/layout/reftests/forms/input/range/same-fraction-of-range-unthemed-1.html @@ -4,6 +4,6 @@ with value=70 (also tests that it doesn't look like type=text, since the text displayed would be different in the type=text case). --> - + diff --git a/layout/reftests/forms/input/range/stepDown-unthemed.html b/layout/reftests/forms/input/range/stepDown-unthemed.html index 6d4d6708a5e4..1ade9086ab77 100644 --- a/layout/reftests/forms/input/range/stepDown-unthemed.html +++ b/layout/reftests/forms/input/range/stepDown-unthemed.html @@ -11,6 +11,6 @@ document.addEventListener("MozReftestInvalidate", setValue); - + diff --git a/layout/reftests/forms/input/range/stepUp-unthemed.html b/layout/reftests/forms/input/range/stepUp-unthemed.html index 1e4198cc66bb..685d6eb0bd99 100644 --- a/layout/reftests/forms/input/range/stepUp-unthemed.html +++ b/layout/reftests/forms/input/range/stepUp-unthemed.html @@ -11,6 +11,6 @@ document.addEventListener("MozReftestInvalidate", setValue); - + diff --git a/layout/reftests/forms/input/range/to-range-from-other-type-unthemed-1-ref.html b/layout/reftests/forms/input/range/to-range-from-other-type-unthemed-1-ref.html index 3103fc721974..402229e0a2f7 100644 --- a/layout/reftests/forms/input/range/to-range-from-other-type-unthemed-1-ref.html +++ b/layout/reftests/forms/input/range/to-range-from-other-type-unthemed-1-ref.html @@ -1,6 +1,6 @@ - + diff --git a/layout/reftests/forms/input/range/to-range-from-other-type-unthemed-1.html b/layout/reftests/forms/input/range/to-range-from-other-type-unthemed-1.html index 86ff0c521487..fc47acc4f674 100644 --- a/layout/reftests/forms/input/range/to-range-from-other-type-unthemed-1.html +++ b/layout/reftests/forms/input/range/to-range-from-other-type-unthemed-1.html @@ -10,6 +10,6 @@ document.addEventListener("MozReftestInvalidate", setToRange); - + diff --git a/layout/reftests/forms/input/range/value-prop-unthemed.html b/layout/reftests/forms/input/range/value-prop-unthemed.html index 46387af2ea81..412ac993aa60 100644 --- a/layout/reftests/forms/input/range/value-prop-unthemed.html +++ b/layout/reftests/forms/input/range/value-prop-unthemed.html @@ -12,6 +12,6 @@ setTimeout(setValue, 2000); // useful when not running under reftest suite - + diff --git a/layout/reftests/forms/input/range/valueAsNumber-prop-unthemed.html b/layout/reftests/forms/input/range/valueAsNumber-prop-unthemed.html index a2a6eb6cce75..24918604a4ee 100644 --- a/layout/reftests/forms/input/range/valueAsNumber-prop-unthemed.html +++ b/layout/reftests/forms/input/range/valueAsNumber-prop-unthemed.html @@ -12,6 +12,6 @@ setTimeout(setValue, 2000); // useful when not running under reftest suite - + diff --git a/layout/reftests/forms/meter/default-style/style.css b/layout/reftests/forms/meter/default-style/style.css index 2d42337e9ae9..6da618501346 100644 --- a/layout/reftests/forms/meter/default-style/style.css +++ b/layout/reftests/forms/meter/default-style/style.css @@ -50,5 +50,5 @@ div.meter-sub-sub-optimum { } meter, meter::-moz-meter-bar, div.meter-element, div.meter-optimum, div.meter-sub-optimum, div.meter-sub-sub-optimum { - -moz-appearance: none; + -moz-appearance: none; appearance: none; } diff --git a/layout/reftests/forms/meter/style.css b/layout/reftests/forms/meter/style.css index 8370c5c33ace..f18572e4a603 100644 --- a/layout/reftests/forms/meter/style.css +++ b/layout/reftests/forms/meter/style.css @@ -26,7 +26,7 @@ div.meter-bar { } meter, meter::-moz-meter-bar, div.meter-element, div.meter-bar { - -moz-appearance: none; + -moz-appearance: none; appearance: none; } meter { diff --git a/layout/reftests/forms/progress/reftest.list b/layout/reftests/forms/progress/reftest.list index 54bccda7bab3..34818352d8db 100644 --- a/layout/reftests/forms/progress/reftest.list +++ b/layout/reftests/forms/progress/reftest.list @@ -1,3 +1,6 @@ +# This enables '-moz-appearance' for author sheets: +default-preferences pref(layout.css.moz-appearance.enabled,true) + == values.html values-ref.html == values-rtl.html values-rtl-ref.html == margin-padding.html margin-padding-ref.html diff --git a/layout/reftests/forms/progress/style.css b/layout/reftests/forms/progress/style.css index 025bde8f8611..82ecd14e500c 100644 --- a/layout/reftests/forms/progress/style.css +++ b/layout/reftests/forms/progress/style.css @@ -5,7 +5,7 @@ div.progress-element { width: 10em; vertical-align: -0.2em; - /* Default style in case of there is -moz-appearance: none; */ + /* Default style in case of there is -moz-appearance: none; appearance: none; */ border: 2px solid; -moz-border-top-colors: ThreeDShadow #e6e6e6; -moz-border-right-colors: ThreeDHighlight #e6e6e6; @@ -30,10 +30,10 @@ div.progress-bar { box-sizing: border-box; - /* Default style in case of there is -moz-appearance: none; */ + /* Default style in case of there is -moz-appearance: none; appearance: none; */ background-color: #0064b4; } progress, progress::-moz-progress-bar, div.progress-element, div.progress-bar { - -moz-appearance: none; + -moz-appearance: none; appearance: none; } diff --git a/layout/reftests/forms/select/focusring-1-ref.html b/layout/reftests/forms/select/focusring-1-ref.html index 9f01908fd59d..f5fd58e6f87b 100644 --- a/layout/reftests/forms/select/focusring-1-ref.html +++ b/layout/reftests/forms/select/focusring-1-ref.html @@ -4,7 +4,7 @@ Testcase #1 for bug 1253977 diff --git a/layout/reftests/text-decoration/underline-block-propagation-2-quirks.html b/layout/reftests/text-decoration/underline-block-propagation-2-quirks.html index 7e32b7581f53..f44b36c7b1f3 100644 --- a/layout/reftests/text-decoration/underline-block-propagation-2-quirks.html +++ b/layout/reftests/text-decoration/underline-block-propagation-2-quirks.html @@ -1,7 +1,7 @@ More tests of propagation of text-decoration diff --git a/layout/reftests/text-decoration/underline-block-propagation-2-standards-ref.html b/layout/reftests/text-decoration/underline-block-propagation-2-standards-ref.html index 9795dcbe413e..69ec78935e25 100644 --- a/layout/reftests/text-decoration/underline-block-propagation-2-standards-ref.html +++ b/layout/reftests/text-decoration/underline-block-propagation-2-standards-ref.html @@ -2,7 +2,7 @@ More tests of propagation of text-decoration diff --git a/layout/reftests/text-decoration/underline-block-propagation-2-standards.html b/layout/reftests/text-decoration/underline-block-propagation-2-standards.html index 018c147a10bd..264329f8ea37 100644 --- a/layout/reftests/text-decoration/underline-block-propagation-2-standards.html +++ b/layout/reftests/text-decoration/underline-block-propagation-2-standards.html @@ -2,7 +2,7 @@ More tests of propagation of text-decoration diff --git a/layout/reftests/text-overflow/combobox-zoom-ref.html b/layout/reftests/text-overflow/combobox-zoom-ref.html index 35b97ea2474f..8aed2ccb60ad 100644 --- a/layout/reftests/text-overflow/combobox-zoom-ref.html +++ b/layout/reftests/text-overflow/combobox-zoom-ref.html @@ -21,7 +21,7 @@ select { width: 200px; padding-right: 8px; - -moz-appearance: none; + -moz-appearance: none; appearance: none; } diff --git a/layout/reftests/text-overflow/combobox-zoom.html b/layout/reftests/text-overflow/combobox-zoom.html index e45ed6d3fa7c..26617616fdbe 100644 --- a/layout/reftests/text-overflow/combobox-zoom.html +++ b/layout/reftests/text-overflow/combobox-zoom.html @@ -21,7 +21,7 @@ select { width: 200px; padding-right: 8px; text-overflow: " "; - -moz-appearance: none; + -moz-appearance: none; appearance: none; } diff --git a/layout/reftests/text/control-chars-01-notref.html b/layout/reftests/text/control-chars-01-notref.html index 3b7735d33b30..1306b36da3a1 100644 --- a/layout/reftests/text/control-chars-01-notref.html +++ b/layout/reftests/text/control-chars-01-notref.html @@ -4,7 +4,7 @@ - diff --git a/layout/reftests/text/control-chars-01a.html b/layout/reftests/text/control-chars-01a.html index 1dbd34ba666a..de80694f2485 100644 --- a/layout/reftests/text/control-chars-01a.html +++ b/layout/reftests/text/control-chars-01a.html @@ -4,7 +4,7 @@ - diff --git a/layout/reftests/text/control-chars-01b.html b/layout/reftests/text/control-chars-01b.html index 19e08552da7e..c0dfde15a1c5 100644 --- a/layout/reftests/text/control-chars-01b.html +++ b/layout/reftests/text/control-chars-01b.html @@ -4,7 +4,7 @@ - diff --git a/layout/reftests/text/control-chars-01c.html b/layout/reftests/text/control-chars-01c.html index 28504d4f4303..76fa3ece308b 100644 --- a/layout/reftests/text/control-chars-01c.html +++ b/layout/reftests/text/control-chars-01c.html @@ -4,7 +4,7 @@ - diff --git a/layout/reftests/text/control-chars-01d.html b/layout/reftests/text/control-chars-01d.html index 561489b25987..22665b21b50c 100644 --- a/layout/reftests/text/control-chars-01d.html +++ b/layout/reftests/text/control-chars-01d.html @@ -4,7 +4,7 @@ - diff --git a/layout/reftests/unicode/unicode-attribute-selector.html b/layout/reftests/unicode/unicode-attribute-selector.html index 8d2eab9e422b..7ceb3f686089 100644 --- a/layout/reftests/unicode/unicode-attribute-selector.html +++ b/layout/reftests/unicode/unicode-attribute-selector.html @@ -8,7 +8,7 @@ input[dİsabled] {display: none;} /* input[dİsabled="disabled"] {display: inline;} */ /* work around unreliable form-control rendering on Gtk+3 (see bug 1223198): */ - input { -moz-appearance: none; } + input { -moz-appearance: none; appearance: none; } diff --git a/layout/reftests/unicode/unicode-element-selector.html b/layout/reftests/unicode/unicode-element-selector.html index 23d0fca513ff..1bf7aaf63ebf 100644 --- a/layout/reftests/unicode/unicode-element-selector.html +++ b/layout/reftests/unicode/unicode-element-selector.html @@ -5,7 +5,7 @@ diff --git a/layout/reftests/unicode/unicode-lang.html b/layout/reftests/unicode/unicode-lang.html index 15a9d88486e2..a819c22f59bd 100644 --- a/layout/reftests/unicode/unicode-lang.html +++ b/layout/reftests/unicode/unicode-lang.html @@ -6,7 +6,7 @@ p:lang(hİ) {color: red} /* p[lang="hİ"] {text-indent:30px} Disabled until Bug 492431 is fixed */ /* work around unreliable form-control rendering on Gtk+3 (see bug 1223198): */ - input { -moz-appearance: none; } + input { -moz-appearance: none; appearance: none; } diff --git a/layout/reftests/unicode/unicode-pseudo-selector.html b/layout/reftests/unicode/unicode-pseudo-selector.html index dad2217617f6..db3f913f0c17 100644 --- a/layout/reftests/unicode/unicode-pseudo-selector.html +++ b/layout/reftests/unicode/unicode-pseudo-selector.html @@ -5,7 +5,7 @@ diff --git a/layout/reftests/unicode/unicode-ref.html b/layout/reftests/unicode/unicode-ref.html index b4e8fb319b27..fde61ff16898 100644 --- a/layout/reftests/unicode/unicode-ref.html +++ b/layout/reftests/unicode/unicode-ref.html @@ -4,7 +4,7 @@ Unicode tests - reference rending diff --git a/layout/reftests/writing-mode/1138356-1-button-contents-alignment-ref.html b/layout/reftests/writing-mode/1138356-1-button-contents-alignment-ref.html index dde5a0c7711c..bbec60c7ee12 100644 --- a/layout/reftests/writing-mode/1138356-1-button-contents-alignment-ref.html +++ b/layout/reftests/writing-mode/1138356-1-button-contents-alignment-ref.html @@ -3,7 +3,7 @@

diff --git a/layout/reftests/writing-mode/ua-style-sheet-button-1a-ref.html b/layout/reftests/writing-mode/ua-style-sheet-button-1a-ref.html index 7567da08a67d..08664518c6c0 100644 --- a/layout/reftests/writing-mode/ua-style-sheet-button-1a-ref.html +++ b/layout/reftests/writing-mode/ua-style-sheet-button-1a-ref.html @@ -4,7 +4,7 @@

diff --git a/layout/style/nsCSSPropAliasList.h b/layout/style/nsCSSPropAliasList.h index 565268d0f879..5947f131b92d 100644 --- a/layout/style/nsCSSPropAliasList.h +++ b/layout/style/nsCSSPropAliasList.h @@ -260,6 +260,11 @@ CSS_PROP_ALIAS(-webkit-animation-timing-function, WebkitAnimationTimingFunction, WEBKIT_PREFIX_PREF) +CSS_PROP_ALIAS(-webkit-appearance, + appearance, + WebkitAppearance, + "layout.css.appearance.enabled") // same pref as for 'appearance' (XXX when we remove that pref we should probably make this WEBKIT_PREFIX_PREF instead) + CSS_PROP_ALIAS(-webkit-filter, filter, WebkitFilter, diff --git a/layout/style/nsCSSPropList.h b/layout/style/nsCSSPropList.h index 4b139d1b11ba..f9aaf3c3e28b 100644 --- a/layout/style/nsCSSPropList.h +++ b/layout/style/nsCSSPropList.h @@ -463,9 +463,21 @@ CSS_PROP_DISPLAY( CSS_PROP_DISPLAY( -moz-appearance, _moz_appearance, - CSS_PROP_DOMPROP_PREFIXED(Appearance), - CSS_PROPERTY_PARSE_VALUE, - "", + MozAppearance, + CSS_PROPERTY_PARSE_VALUE | + CSS_PROPERTY_ENABLED_IN_UA_SHEETS_AND_CHROME, + "layout.css.moz-appearance.enabled", + VARIANT_HK, + kMozAppearanceKTable, + CSS_PROP_NO_OFFSET, + eStyleAnimType_Discrete) +CSS_PROP_DISPLAY( + appearance, + appearance, + Appearance, + CSS_PROPERTY_PARSE_VALUE | + CSS_PROPERTY_ENABLED_IN_UA_SHEETS_AND_CHROME, + "layout.css.appearance.enabled", // also controls -webkit-appearance VARIANT_HK, kAppearanceKTable, CSS_PROP_NO_OFFSET, diff --git a/layout/style/nsCSSProps.cpp b/layout/style/nsCSSProps.cpp index e6704a170f94..73e9c0f2c8cc 100644 --- a/layout/style/nsCSSProps.cpp +++ b/layout/style/nsCSSProps.cpp @@ -742,6 +742,12 @@ const KTableEntry nsCSSProps::kAnimationPlayStateKTable[] = { }; const KTableEntry nsCSSProps::kAppearanceKTable[] = { + { eCSSKeyword_auto, NS_THEME_AUTO }, + { eCSSKeyword_none, NS_THEME_NONE }, + { eCSSKeyword_UNKNOWN, -1 } +}; + +const KTableEntry nsCSSProps::kMozAppearanceKTable[] = { { eCSSKeyword_none, NS_THEME_NONE }, { eCSSKeyword_button, NS_THEME_BUTTON }, { eCSSKeyword_radio, NS_THEME_RADIO }, diff --git a/layout/style/nsCSSProps.h b/layout/style/nsCSSProps.h index 65b31219051e..443dd7589623 100644 --- a/layout/style/nsCSSProps.h +++ b/layout/style/nsCSSProps.h @@ -696,6 +696,7 @@ public: static const KTableEntry kAnimationPlayStateKTable[]; static const KTableEntry kAnimationTimingFunctionKTable[]; static const KTableEntry kAppearanceKTable[]; + static const KTableEntry kMozAppearanceKTable[]; static const KTableEntry kAzimuthKTable[]; static const KTableEntry kBackfaceVisibilityKTable[]; static const KTableEntry kTransformStyleKTable[]; diff --git a/layout/style/nsComputedDOMStyle.cpp b/layout/style/nsComputedDOMStyle.cpp index 4cd039adece1..af81f9347482 100644 --- a/layout/style/nsComputedDOMStyle.cpp +++ b/layout/style/nsComputedDOMStyle.cpp @@ -4378,6 +4378,14 @@ nsComputedDOMStyle::DoGetAppearance() return val.forget(); } +already_AddRefed +nsComputedDOMStyle::DoGetMozAppearance() +{ + RefPtr val = new nsROCSSPrimitiveValue; + val->SetIdent(nsCSSProps::ValueToKeywordEnum(StyleDisplay()->mMozAppearance, + nsCSSProps::kMozAppearanceKTable)); + return val.forget(); +} already_AddRefed nsComputedDOMStyle::DoGetBoxAlign() diff --git a/layout/style/nsComputedDOMStyle.h b/layout/style/nsComputedDOMStyle.h index 6e9188eaa4f7..ac29d63643c1 100644 --- a/layout/style/nsComputedDOMStyle.h +++ b/layout/style/nsComputedDOMStyle.h @@ -256,6 +256,7 @@ private: */ already_AddRefed DoGetAppearance(); + already_AddRefed DoGetMozAppearance(); /* Box properties */ already_AddRefed DoGetBoxAlign(); diff --git a/layout/style/nsComputedDOMStylePropertyList.h b/layout/style/nsComputedDOMStylePropertyList.h index 00c324ed71a2..e068ed44fac6 100644 --- a/layout/style/nsComputedDOMStylePropertyList.h +++ b/layout/style/nsComputedDOMStylePropertyList.h @@ -51,6 +51,7 @@ COMPUTED_STYLE_PROP(animation_iteration_count, AnimationIterationCount) COMPUTED_STYLE_PROP(animation_name, AnimationName) COMPUTED_STYLE_PROP(animation_play_state, AnimationPlayState) COMPUTED_STYLE_PROP(animation_timing_function, AnimationTimingFunction) +COMPUTED_STYLE_PROP(appearance, Appearance) COMPUTED_STYLE_PROP(backface_visibility, BackfaceVisibility) //// COMPUTED_STYLE_PROP(background, Background) COMPUTED_STYLE_PROP(background_attachment, BackgroundAttachment) @@ -274,7 +275,7 @@ COMPUTED_STYLE_PROP(z_index, ZIndex) * Implementations of -moz- styles * \* ******************************* */ -COMPUTED_STYLE_PROP(_moz_appearance, Appearance) +COMPUTED_STYLE_PROP(_moz_appearance, MozAppearance) COMPUTED_STYLE_PROP(_moz_binding, Binding) COMPUTED_STYLE_PROP(_moz_border_bottom_colors, BorderBottomColors) COMPUTED_STYLE_PROP(_moz_border_left_colors, BorderLeftColors) diff --git a/layout/style/nsRuleNode.cpp b/layout/style/nsRuleNode.cpp index 1417deca2e9e..a82818d930de 100644 --- a/layout/style/nsRuleNode.cpp +++ b/layout/style/nsRuleNode.cpp @@ -6068,12 +6068,19 @@ nsRuleNode::ComputeDisplayData(void* aStartStruct, // See ReflowInput::CalculateHypotheticalBox display->mOriginalDisplay = display->mDisplay; - // appearance: enum, inherit, initial + // -moz-appearance: enum, inherit, initial + SetValue(*aRuleData->ValueForMozAppearance(), + display->mMozAppearance, conditions, + SETVAL_ENUMERATED | SETVAL_UNSET_INITIAL, + parentDisplay->mMozAppearance, + NS_THEME_NONE); + + // appearance: auto | none SetValue(*aRuleData->ValueForAppearance(), display->mAppearance, conditions, SETVAL_ENUMERATED | SETVAL_UNSET_INITIAL, parentDisplay->mAppearance, - NS_THEME_NONE); + NS_THEME_AUTO); // binding: url, none, inherit const nsCSSValue* bindingValue = aRuleData->ValueForBinding(); diff --git a/layout/style/nsStyleStruct.cpp b/layout/style/nsStyleStruct.cpp index 9835affb301b..6eb3d41cf0ca 100644 --- a/layout/style/nsStyleStruct.cpp +++ b/layout/style/nsStyleStruct.cpp @@ -3340,7 +3340,8 @@ nsStyleDisplay::nsStyleDisplay(const nsPresContext* aContext) : mDisplay(StyleDisplay::Inline) , mOriginalDisplay(StyleDisplay::Inline) , mContain(NS_STYLE_CONTAIN_NONE) - , mAppearance(NS_THEME_NONE) + , mMozAppearance(NS_THEME_NONE) + , mAppearance(NS_THEME_AUTO) , mPosition(NS_STYLE_POSITION_STATIC) , mFloat(StyleFloat::None) , mOriginalFloat(StyleFloat::None) @@ -3402,6 +3403,7 @@ nsStyleDisplay::nsStyleDisplay(const nsStyleDisplay& aSource) , mDisplay(aSource.mDisplay) , mOriginalDisplay(aSource.mOriginalDisplay) , mContain(aSource.mContain) + , mMozAppearance(aSource.mMozAppearance) , mAppearance(aSource.mAppearance) , mPosition(aSource.mPosition) , mFloat(aSource.mFloat) @@ -3520,10 +3522,10 @@ nsStyleDisplay::CalcDifference(const nsStyleDisplay& aNewData) const * if this does become common perhaps a faster-path might be worth while. */ - if ((mAppearance == NS_THEME_TEXTFIELD && - aNewData.mAppearance != NS_THEME_TEXTFIELD) || - (mAppearance != NS_THEME_TEXTFIELD && - aNewData.mAppearance == NS_THEME_TEXTFIELD)) { + if ((mMozAppearance == NS_THEME_TEXTFIELD && + aNewData.mMozAppearance != NS_THEME_TEXTFIELD) || + (mMozAppearance != NS_THEME_TEXTFIELD && + aNewData.mMozAppearance == NS_THEME_TEXTFIELD)) { // This is for where we allow authors to specify a // |-moz-appearance:textfield| to get a control without a spinner. (The // spinner is present for |-moz-appearance:number-input| but also other @@ -3552,6 +3554,7 @@ nsStyleDisplay::CalcDifference(const nsStyleDisplay& aNewData) const || mBreakInside != aNewData.mBreakInside || mBreakBefore != aNewData.mBreakBefore || mBreakAfter != aNewData.mBreakAfter + || mMozAppearance != aNewData.mMozAppearance || mAppearance != aNewData.mAppearance || mOrient != aNewData.mOrient || mOverflowClipBox != aNewData.mOverflowClipBox) { diff --git a/layout/style/nsStyleStruct.h b/layout/style/nsStyleStruct.h index 96fc8fdfc8d0..9510865831c3 100644 --- a/layout/style/nsStyleStruct.h +++ b/layout/style/nsStyleStruct.h @@ -27,6 +27,7 @@ #include "nsStyleAutoArray.h" #include "nsStyleCoord.h" #include "nsStyleConsts.h" +#include "nsThemeConstants.h" #include "nsChangeHint.h" #include "nsPresContext.h" #include "nsCOMPtr.h" @@ -2683,7 +2684,20 @@ struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStyleDisplay // otherwise equal to // mDisplay uint8_t mContain; // [reset] see nsStyleConsts.h NS_STYLE_CONTAIN_* +private: + friend class nsComputedDOMStyle; + friend class nsRuleNode; + uint8_t mMozAppearance; // [reset] uint8_t mAppearance; // [reset] +public: + MOZ_MUST_USE uint8_t UsedAppearance() const { + if (mAppearance == NS_THEME_NONE) { + return NS_THEME_NONE; + } + MOZ_ASSERT(mAppearance == NS_THEME_AUTO); + return mMozAppearance; // use the -moz-appearance value + } + uint8_t mPosition; // [reset] see nsStyleConsts.h // [reset] See StyleFloat in nsStyleConsts.h. diff --git a/layout/style/res/forms.css b/layout/style/res/forms.css index 84817b2561b7..fdf32c088fa6 100644 --- a/layout/style/res/forms.css +++ b/layout/style/res/forms.css @@ -600,7 +600,7 @@ input[type="checkbox"]:disabled:hover:active { %if defined(MOZ_WIDGET_ANDROID) /* - * These platforms doesn't have any theming support and thus -moz-appearance:none + * These platforms doesn't have any theming support and thus appearance:none * is the same as any other appearance value. * XXX This is not web-compatible and should be fixed. */ diff --git a/layout/style/test/property_database.js b/layout/style/test/property_database.js index aac4d19480d6..6979ff197bf2 100644 --- a/layout/style/test/property_database.js +++ b/layout/style/test/property_database.js @@ -1028,14 +1028,6 @@ var gCSSProperties = { other_values: [ "cubic-bezier(0.25, 0.1, 0.25, 1.0)", "linear", "ease-in", "ease-out", "ease-in-out", "linear, ease-in, cubic-bezier(0.1, 0.2, 0.8, 0.9)", "cubic-bezier(0.5, 0.5, 0.5, 0.5)", "cubic-bezier(0.25, 1.5, 0.75, -0.5)", "step-start", "step-end", "steps(1)", "steps(2, start)", "steps(386)", "steps(3, end)", "frames(2)", "frames(1000)", "frames( 2 )" ], invalid_values: [ "none", "auto", "cubic-bezier(0.25, 0.1, 0.25)", "cubic-bezier(0.25, 0.1, 0.25, 0.25, 1.0)", "cubic-bezier(-0.5, 0.5, 0.5, 0.5)", "cubic-bezier(1.5, 0.5, 0.5, 0.5)", "cubic-bezier(0.5, 0.5, -0.5, 0.5)", "cubic-bezier(0.5, 0.5, 1.5, 0.5)", "steps(2, step-end)", "steps(0)", "steps(-2)", "steps(0, step-end, 1)", "frames(1)", "frames(-2)", "frames", "frames()", "frames(,)", "frames(a)", "frames(2.0)", "frames(2.5)", "frames(2 3)" ] }, - "-moz-appearance": { - domProp: "MozAppearance", - inherited: false, - type: CSS_TYPE_LONGHAND, - initial_values: [ "none" ], - other_values: [ "radio", "menulist" ], - invalid_values: [] - }, "-moz-binding": { domProp: "MozBinding", inherited: false, @@ -7874,6 +7866,37 @@ if (IsCSSPropertyPrefEnabled("layout.css.display-flow-root.enabled")) { gCSSProperties["display"].other_values.push("flow-root"); } +if (IsCSSPropertyPrefEnabled("layout.css.appearance.enabled")) { + gCSSProperties["appearance"] = { + domProp: "appearance", + inherited: false, + type: CSS_TYPE_LONGHAND, + initial_values: [ "auto" ], + other_values: [ "none" ], + invalid_values: [ "button" ] + }; + gCSSProperties["-webkit-appearance"] = { + domProp: "webkitAppearance", + inherited: false, + type: CSS_TYPE_SHORTHAND_AND_LONGHAND, + alias_for: "appearance", + subproperties: [ "appearance" ], + }; +} +if (IsCSSPropertyPrefEnabled("layout.css.moz-appearance.enabled")) { + gCSSProperties["-moz-appearance"] = { + domProp: "MozAppearance", + inherited: false, + type: CSS_TYPE_LONGHAND, + initial_values: [ "none" ], + other_values: [ "radio", "menulist", "button", "checkbox", "textfield", + "textfield-multiline", "meterbar", "progressbar", "range", + "range-thumb", "spinner-upbutton", "spinner-downbutton", + "number-input", "listbox", "menulist-button" ], + invalid_values: [ "auto" ] + }; +} + // Copy aliased properties' fields from their alias targets. for (var prop in gCSSProperties) { var entry = gCSSProperties[prop]; diff --git a/layout/style/test/test_pseudoelement_state.html b/layout/style/test/test_pseudoelement_state.html index ad4bf5242d42..49bc87939882 100644 --- a/layout/style/test/test_pseudoelement_state.html +++ b/layout/style/test/test_pseudoelement_state.html @@ -14,7 +14,7 @@ var gTests = [ // Interact with the ::-moz-progress-bar. { markup: '', pseudoelement: '::-moz-progress-bar', - common_style: 'progress { -moz-appearance: none; } progress::-moz-progress-bar { background: black; }', + common_style: 'progress { -moz-appearance: none; appearance: none; } progress::-moz-progress-bar { background: black; }', hover_test_style: 'progress::-moz-progress-bar:hover { background: green; }', hover_reference_style: 'progress::-moz-progress-bar { background: green; }', active_test_style: 'progress::-moz-progress-bar:active { background: lime; }', @@ -23,7 +23,7 @@ var gTests = [ // Interact with the part of the not covered by the ::-moz-progress-bar. { markup: '', pseudoelement: '::-moz-progress-bar', - common_style: 'progress { -moz-appearance: none; } progress::-moz-progress-bar { background: black; }', + common_style: 'progress { -moz-appearance: none; appearance: none; } progress::-moz-progress-bar { background: black; }', hover_test_style: 'progress::-moz-progress-bar { background: green; } progress::-moz-progress-bar:hover { background: red; }', hover_reference_style: 'progress::-moz-progress-bar { background: green; }', active_test_style: 'progress::-moz-progress-bar { background: lime; } progress::-moz-progress-bar:active { background: red; }', @@ -32,7 +32,7 @@ var gTests = [ // Interact with the ::-moz-range-thumb. { markup: '', pseudoelement: '::-moz-range-thumb', - common_style: 'input { -moz-appearance: none; } input::-moz-range-thumb { background: black; }', + common_style: 'input { -moz-appearance: none; appearance: none; } input::-moz-range-thumb { background: black; }', hover_test_style: 'input::-moz-range-thumb:hover { background: green; }', hover_reference_style: 'input::-moz-range-thumb { background: green; }', active_test_style: 'input::-moz-range-thumb:active { background: lime; }', @@ -41,7 +41,7 @@ var gTests = [ // Interact with the part of the not covered by the ::-moz-range-thumb. { markup: '', pseudoelement: '::-moz-range-thumb', - common_style: 'input { -moz-appearance: none; } input::-moz-range-thumb { background: black; }', + common_style: 'input { -moz-appearance: none; appearance: none; } input::-moz-range-thumb { background: black; }', hover_test_style: 'input::-moz-range-thumb { background: green; } input::-moz-range-thumb:hover { background: red; }', hover_reference_style: 'input::-moz-range-thumb { background: green; }', active_test_style: 'input::-moz-range-thumb { background: lime; } input::-moz-range-thumb:active { background: red; }', @@ -50,7 +50,7 @@ var gTests = [ // Interact with the ::-moz-meter-bar. { markup: '', pseudoelement: '::-moz-meter-bar', - common_style: 'meter { -moz-appearance: none; } meter::-moz-meter-bar { background: black; }', + common_style: 'meter { -moz-appearance: none; appearance: none; } meter::-moz-meter-bar { background: black; }', hover_test_style: 'meter::-moz-meter-bar:hover { background: green; }', hover_reference_style: 'meter::-moz-meter-bar { background: green; }', active_test_style: 'meter::-moz-meter-bar:active { background: lime; }', @@ -59,7 +59,7 @@ var gTests = [ // Interact with the part of the not covered by the ::-moz-meter-bar. { markup: '', pseudoelement: '::-moz-meter-bar', - common_style: 'meter { -moz-appearance: none; } meter::-moz-meter-bar { background: black; }', + common_style: 'meter { -moz-appearance: none; appearance: none; } meter::-moz-meter-bar { background: black; }', hover_test_style: 'meter::-moz-meter-bar { background: green; } meter::-moz-meter-bar:hover { background: red; }', hover_reference_style: 'meter::-moz-meter-bar { background: green; }', active_test_style: 'meter::-moz-meter-bar { background: lime; } meter::-moz-meter-bar:active { background: red; }', @@ -69,7 +69,7 @@ var gTests = [ // but with selectors that include descendant operators. { markup: '', pseudoelement: '::-moz-range-thumb', - common_style: 'body input { -moz-appearance: none; } input::-moz-range-thumb { background: black; }', + common_style: 'body input { -moz-appearance: none; appearance: none; } input::-moz-range-thumb { background: black; }', hover_test_style: 'body input::-moz-range-thumb:hover { background: green; }', hover_reference_style: 'body input::-moz-range-thumb { background: green; }', active_test_style: 'body input::-moz-range-thumb:active { background: lime; }', diff --git a/layout/svg/crashtests/crashtests.list b/layout/svg/crashtests/crashtests.list index 9d2d75c55f97..a337d05a4b26 100644 --- a/layout/svg/crashtests/crashtests.list +++ b/layout/svg/crashtests/crashtests.list @@ -74,7 +74,7 @@ load 420697-2.svg load 429774-1.svg load 441368-1.svg load 453754-1.svg -load 455314-1.xhtml +pref(layout.css.moz-appearance.enabled,true) load 455314-1.xhtml load 458453.html load 459666-1.html # bug 1323652 load 459883.xhtml @@ -153,7 +153,7 @@ load 789390-1.html # bug 1323652 load 790072.svg load 791826-1.svg load 808318-1.svg -load 803562-1.svg +pref(layout.css.moz-appearance.enabled,true) load 803562-1.svg load 813420-1.svg load 841163-1.svg load 841812-1.svg diff --git a/layout/tables/nsTableCellFrame.cpp b/layout/tables/nsTableCellFrame.cpp index 1e94e6da430a..8084eff709ea 100644 --- a/layout/tables/nsTableCellFrame.cpp +++ b/layout/tables/nsTableCellFrame.cpp @@ -493,7 +493,7 @@ nsTableCellFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder, // display background if we need to. if (aBuilder->IsForEventDelivery() || !StyleBackground()->IsTransparent(this) || - StyleDisplay()->mAppearance) { + StyleDisplay()->UsedAppearance()) { nsDisplayBackgroundImage::AppendBackgroundItemsToTop(aBuilder, this, GetRectRelativeToSelf(), diff --git a/layout/tables/nsTableFrame.cpp b/layout/tables/nsTableFrame.cpp index 4bd33e3f26dc..4521e83eb24b 100644 --- a/layout/tables/nsTableFrame.cpp +++ b/layout/tables/nsTableFrame.cpp @@ -1513,7 +1513,7 @@ static inline bool FrameHasBorderOrBackground(nsTableFrame* tableFrame, nsIFrame return true; } if (!f->StyleBackground()->IsTransparent(f) || - f->StyleDisplay()->mAppearance) { + f->StyleDisplay()->UsedAppearance()) { nsTableCellFrame *cellFrame = do_QueryFrame(f); // We could also return false here if the current frame is the root diff --git a/layout/xul/crashtests/189814-1.xul b/layout/xul/crashtests/189814-1.xul index 79462348c684..c025fb65cefa 100644 --- a/layout/xul/crashtests/189814-1.xul +++ b/layout/xul/crashtests/189814-1.xul @@ -6,7 +6,7 @@ style="background-color: white"> diff --git a/layout/xul/nsBox.cpp b/layout/xul/nsBox.cpp index 36661b060ce0..9a36e9cc87c8 100644 --- a/layout/xul/nsBox.cpp +++ b/layout/xul/nsBox.cpp @@ -300,13 +300,13 @@ nsBox::GetXULBorder(nsMargin& aMargin) aMargin.SizeTo(0,0,0,0); const nsStyleDisplay* disp = StyleDisplay(); - if (disp->mAppearance && gTheme) { + if (disp->UsedAppearance() && gTheme) { // Go to the theme for the border. nsPresContext *context = PresContext(); - if (gTheme->ThemeSupportsWidget(context, this, disp->mAppearance)) { + if (gTheme->ThemeSupportsWidget(context, this, disp->UsedAppearance())) { nsIntMargin margin(0, 0, 0, 0); gTheme->GetWidgetBorder(context->DeviceContext(), this, - disp->mAppearance, &margin); + disp->UsedAppearance(), &margin); aMargin.top = context->DevPixelsToAppUnits(margin.top); aMargin.right = context->DevPixelsToAppUnits(margin.right); aMargin.bottom = context->DevPixelsToAppUnits(margin.bottom); @@ -324,15 +324,15 @@ nsresult nsBox::GetXULPadding(nsMargin& aMargin) { const nsStyleDisplay *disp = StyleDisplay(); - if (disp->mAppearance && gTheme) { + if (disp->UsedAppearance() && gTheme) { // Go to the theme for the padding. nsPresContext *context = PresContext(); - if (gTheme->ThemeSupportsWidget(context, this, disp->mAppearance)) { + if (gTheme->ThemeSupportsWidget(context, this, disp->UsedAppearance())) { nsIntMargin margin(0, 0, 0, 0); bool useThemePadding; useThemePadding = gTheme->GetWidgetPadding(context->DeviceContext(), - this, disp->mAppearance, + this, disp->UsedAppearance(), &margin); if (useThemePadding) { aMargin.top = context->DevPixelsToAppUnits(margin.top); @@ -670,12 +670,12 @@ nsIFrame::AddXULMinSize(nsBoxLayoutState& aState, nsIFrame* aBox, nsSize& aSize, // See if a native theme wants to supply a minimum size. const nsStyleDisplay* display = aBox->StyleDisplay(); - if (display->mAppearance) { + if (display->UsedAppearance()) { nsITheme *theme = aState.PresContext()->GetTheme(); - if (theme && theme->ThemeSupportsWidget(aState.PresContext(), aBox, display->mAppearance)) { + if (theme && theme->ThemeSupportsWidget(aState.PresContext(), aBox, display->UsedAppearance())) { LayoutDeviceIntSize size; theme->GetMinimumWidgetSize(aState.PresContext(), aBox, - display->mAppearance, &size, &canOverride); + display->UsedAppearance(), &size, &canOverride); if (size.width) { aSize.width = aState.PresContext()->DevPixelsToAppUnits(size.width); aWidthSet = true; diff --git a/layout/xul/nsBoxFrame.cpp b/layout/xul/nsBoxFrame.cpp index 95ae86266f2a..a2a2e83253fa 100644 --- a/layout/xul/nsBoxFrame.cpp +++ b/layout/xul/nsBoxFrame.cpp @@ -1326,7 +1326,7 @@ nsBoxFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder, // Check for frames that are marked as a part of the region used // in calculating glass margins on Windows. const nsStyleDisplay* styles = StyleDisplay(); - if (styles && styles->mAppearance == NS_THEME_WIN_EXCLUDE_GLASS) { + if (styles && styles->UsedAppearance() == NS_THEME_WIN_EXCLUDE_GLASS) { aBuilder->AddWindowExcludeGlassRegion( nsRect(aBuilder->ToReferenceFrame(this), GetSize())); } diff --git a/layout/xul/nsImageBoxFrame.cpp b/layout/xul/nsImageBoxFrame.cpp index 6a7349d41ec5..f6dcd68fbabc 100644 --- a/layout/xul/nsImageBoxFrame.cpp +++ b/layout/xul/nsImageBoxFrame.cpp @@ -260,7 +260,7 @@ nsImageBoxFrame::UpdateImage() } else { // Only get the list-style-image if we aren't being drawn // by a native theme. - uint8_t appearance = StyleDisplay()->mAppearance; + uint8_t appearance = StyleDisplay()->UsedAppearance(); if (!(appearance && nsBox::gTheme && nsBox::gTheme->ThemeSupportsWidget(nullptr, this, appearance))) { // get the list-style-image @@ -532,8 +532,8 @@ nsImageBoxFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext) // If we're using a native theme implementation, we shouldn't draw anything. const nsStyleDisplay* disp = StyleDisplay(); - if (disp->mAppearance && nsBox::gTheme && - nsBox::gTheme->ThemeSupportsWidget(nullptr, this, disp->mAppearance)) + if (disp->UsedAppearance() && nsBox::gTheme && + nsBox::gTheme->ThemeSupportsWidget(nullptr, this, disp->UsedAppearance())) return; // If list-style-image changes, we have a new image. diff --git a/layout/xul/nsMenuPopupFrame.cpp b/layout/xul/nsMenuPopupFrame.cpp index bf882e03ae36..f9dd52203f47 100644 --- a/layout/xul/nsMenuPopupFrame.cpp +++ b/layout/xul/nsMenuPopupFrame.cpp @@ -368,7 +368,7 @@ nsMenuPopupFrame::GetShadowStyle() if (shadow != NS_STYLE_WINDOW_SHADOW_DEFAULT) return shadow; - switch (StyleDisplay()->mAppearance) { + switch (StyleDisplay()->UsedAppearance()) { case NS_THEME_TOOLTIP: return NS_STYLE_WINDOW_SHADOW_TOOLTIP; case NS_THEME_MENUPOPUP: diff --git a/layout/xul/reftest/reftest.list b/layout/xul/reftest/reftest.list index 39f35357747c..60aa2ee57ffd 100644 --- a/layout/xul/reftest/reftest.list +++ b/layout/xul/reftest/reftest.list @@ -1,5 +1,5 @@ -fails-if(Android) == textbox-multiline-noresize.xul textbox-multiline-ref.xul # reference is blank on Android (due to no native theme support?) -!= textbox-multiline-resize.xul textbox-multiline-ref.xul +pref(layout.css.moz-appearance.enabled,true) fails-if(Android) == textbox-multiline-noresize.xul textbox-multiline-ref.xul # reference is blank on Android (due to no native theme support?) +pref(layout.css.moz-appearance.enabled,true) != textbox-multiline-resize.xul textbox-multiline-ref.xul == popup-explicit-size.xul popup-explicit-size-ref.xul random-if(Android) == image-size.xul image-size-ref.xul == image-scaling-min-height-1.xul image-scaling-min-height-1-ref.xul diff --git a/layout/xul/test/test_bug563416.html b/layout/xul/test/test_bug563416.html index dd245de0b05d..3a3b258e8657 100644 --- a/layout/xul/test/test_bug563416.html +++ b/layout/xul/test/test_bug563416.html @@ -10,7 +10,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=563416 Mozilla Bug 563416 -

+

diff --git a/layout/xul/test/test_windowminmaxsize.xul b/layout/xul/test/test_windowminmaxsize.xul index f7f17ef7b2f9..76ffaa5e563d 100644 --- a/layout/xul/test/test_windowminmaxsize.xul +++ b/layout/xul/test/test_windowminmaxsize.xul @@ -11,9 +11,9 @@ src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"/> + align="start" pack="start" style="-moz-appearance: none; appearance: none; margin: 0; border: 0; padding: 0;"> + style="-moz-appearance: none; appearance: none; margin: 0; border: 0; padding: 0;"/> -