Bug 1273706 - Part 3: Add new pref to enable the Properties & Values API. r?dholbert draft
authorJonathan Chan <jyc@eqv.io>
Thu, 18 Aug 2016 13:25:30 -0700
changeset 402892 a05932142abb66bad736dbdacc3c422eeeac7b28
parent 402891 2a76bfb149d3f0b113dfde28acc00440d558d00f
child 402893 7208789a1148a6040b7ff07cb6185154634b8007
push id26775
push userjchan@mozilla.com
push dateThu, 18 Aug 2016 22:38:41 +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