Bug 1492012 - Enable scrollbar-color and scrollbar-width by default. r=heycam
authorXidorn Quan <me@upsuper.org>
Wed, 26 Sep 2018 03:30:32 +0000
changeset 438227 9ed4cd3adbbb5eea2033abc78b583c6c12d3a28a
parent 438226 5d624ee1b23d29116055ca149d24e8b95b086d91
child 438228 c4972079847accfec09f9a55fcb21e9c3e8dbc14
push id34712
push useraiakab@mozilla.com
push dateWed, 26 Sep 2018 12:35:23 +0000
treeherdermozilla-central@cfe90e5953d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam
bugs1492012
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1492012 - Enable scrollbar-color and scrollbar-width by default. r=heycam Differential Revision: https://phabricator.services.mozilla.com/D6872
devtools/shared/css/generated/properties-db.js
modules/libpref/init/all.js
--- a/devtools/shared/css/generated/properties-db.js
+++ b/devtools/shared/css/generated/properties-db.js
@@ -8209,16 +8209,53 @@ exports.CSS_PROPERTIES = {
       "inherit",
       "initial",
       "mandatory",
       "none",
       "proximity",
       "unset"
     ]
   },
+  "scrollbar-color": {
+    "isInherited": true,
+    "subproperties": [
+      "scrollbar-color"
+    ],
+    "supports": [
+      2
+    ],
+    "values": [
+      "COLOR",
+      "auto",
+      "currentColor",
+      "hsl",
+      "hsla",
+      "inherit",
+      "initial",
+      "rgb",
+      "rgba",
+      "transparent",
+      "unset"
+    ]
+  },
+  "scrollbar-width": {
+    "isInherited": false,
+    "subproperties": [
+      "scrollbar-width"
+    ],
+    "supports": [],
+    "values": [
+      "auto",
+      "inherit",
+      "initial",
+      "none",
+      "thin",
+      "unset"
+    ]
+  },
   "shape-image-threshold": {
     "isInherited": false,
     "subproperties": [
       "shape-image-threshold"
     ],
     "supports": [],
     "values": [
       "inherit",
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -2950,20 +2950,20 @@ pref("layout.css.initial-letter.enabled"
 
 // Is support for mix-blend-mode enabled?
 pref("layout.css.mix-blend-mode.enabled", true);
 
 // Is support for isolation enabled?
 pref("layout.css.isolation.enabled", true);
 
 // Is support for CSS Scrollbar color properties enabled?
-pref("layout.css.scrollbar-colors.enabled", false);
+pref("layout.css.scrollbar-colors.enabled", true);
 
 // Is support for scrollbar-width property enabled?
-pref("layout.css.scrollbar-width.enabled", false);
+pref("layout.css.scrollbar-width.enabled", true);
 
 // Set the threshold distance in CSS pixels below which scrolling will snap to
 // an edge, when scroll snapping is set to "proximity".
 pref("layout.css.scroll-snap.proximity-threshold", 200);
 
 // When selecting the snap point for CSS scroll snapping, the velocity of the
 // scroll frame is clamped to this speed, in CSS pixels / s.
 pref("layout.css.scroll-snap.prediction-max-velocity", 2000);