diff options
author | Moonchild <moonchild@palemoon.org> | 2021-07-08 22:08:12 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-07-08 22:08:12 +0000 |
commit | 7269d0b0c56d6750e4c3a24b11334caa5712beb5 (patch) | |
tree | e4aff808d4a964cbfb3aea5eda50e51cdf6d431b | |
parent | 3163b3af18d8b8ffa7b8294f61602b0f0f27da2f (diff) | |
download | uxp-1791.tar.gz |
Issue #1791 - Part 1: Support unprefixed CSS "appearance" property.1791
Alias -moz-appearance and -webkit-appearance to this.
-rw-r--r-- | layout/style/nsCSSPropAliasList.h | 4 | ||||
-rw-r--r-- | layout/style/nsCSSPropList.h | 4 | ||||
-rw-r--r-- | modules/libpref/init/all.js | 1 |
3 files changed, 7 insertions, 2 deletions
diff --git a/layout/style/nsCSSPropAliasList.h b/layout/style/nsCSSPropAliasList.h index 4f2a6e6b6d..e00b61b876 100644 --- a/layout/style/nsCSSPropAliasList.h +++ b/layout/style/nsCSSPropAliasList.h @@ -118,6 +118,10 @@ CSS_PROP_ALIAS(-moz-animation-timing-function, animation_timing_function, MozAnimationTimingFunction, "layout.css.prefixes.animations") +CSS_PROP_ALIAS(-moz-appearance, + appearance, + MozAppearance, + "layout.css.prefixes.appearance") CSS_PROP_ALIAS(-moz-box-sizing, box_sizing, MozBoxSizing, diff --git a/layout/style/nsCSSPropList.h b/layout/style/nsCSSPropList.h index 45e919d4f8..064e9f9f4f 100644 --- a/layout/style/nsCSSPropList.h +++ b/layout/style/nsCSSPropList.h @@ -461,9 +461,9 @@ CSS_PROP_DISPLAY( CSS_PROP_NO_OFFSET, eStyleAnimType_None) CSS_PROP_DISPLAY( - -moz-appearance, appearance, - CSS_PROP_DOMPROP_PREFIXED(Appearance), + appearance, + Appearance, CSS_PROPERTY_PARSE_VALUE, "", VARIANT_HK, diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 79e393efe0..671673573c 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -2485,6 +2485,7 @@ pref("layout.css.font-display.enabled", false); pref("layout.css.font-variations.stub", true); // Are sets of prefixed properties supported? +pref("layout.css.prefixes.appearance", true); pref("layout.css.prefixes.border-image", true); pref("layout.css.prefixes.transforms", true); pref("layout.css.prefixes.transitions", true); |