Bug 1273706 - Part 3: Add new pref to enable the Properties & Values API. r?dholbert draft
authorJonathan Chan <jyc@eqv.io>
Mon, 15 Aug 2016 00:48:17 -0700
changeset 400591 efb28e07f1e2a885260a70c4d3dbaabccfc1d8d5
parent 400590 75bf9cb8af5f32c063ce41149a2ffed5c9d194a1
child 400592 a691ff7008f73d99849a9234c1ac76d5e84b767a
push id26211
push userjchan@mozilla.com
push dateMon, 15 Aug 2016 08:07:32 +0000
reviewersdholbert
bugs1273706
milestone51.0a1
Bug 1273706 - Part 3: Add new pref to enable the Properties & Values API. r?dholbert This will control whether or not CSS.registerProperty and CSS.unregisterProperty are available. Behavior with existing CSS variables should be the same. MozReview-Commit-ID: DMGMQAX1Xd3
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -2611,16 +2611,19 @@ pref("layout.css.font-loading-api.enable
 
 // Should stray control characters be rendered visibly?
 #ifdef RELEASE_BUILD
 pref("layout.css.control-characters.visible", false);
 #else
 pref("layout.css.control-characters.visible", true);
 #endif
 
+// Whether the Properties & Values API is enabled
+pref("layout.css.properties_and_values.enabled", false);
+
 // pref for which side vertical scrollbars should be on
 // 0 = end-side in UI direction
 // 1 = end-side in document/content direction
 // 2 = right
 // 3 = left
 pref("layout.scrollbar.side", 0);
 
 // pref to stop overlay scrollbars from fading out, for testing purposes