Bug 1343512 - Let CSS text-justify property ride the train. draft
authorJeremy Chen <jeremychen@mozilla.com>
Mon, 06 Mar 2017 14:30:18 +0800
changeset 493834 dd288fa978ef489b7d8c6a351b0475b00d7fd439
parent 493721 8d026c60151005ad942e3d4389318fe28a0c8c54
child 547944 599c0350853182ca7740836630b714a1d4560441
push id47860
push userjichen@mozilla.com
push dateMon, 06 Mar 2017 06:31:00 +0000
bugs1343512
milestone54.0a1
Bug 1343512 - Let CSS text-justify property ride the train. As title, so no ifndef MOZ_RELEASE guard here. If we discover some serious issues, we can always pref it off on RELEASE channel. MozReview-Commit-ID: 9ODz6SKdBeL
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
@@ -3218,16 +3218,17 @@ exports.CSS_PROPERTIES = {
       "cubic-bezier",
       "currentColor",
       "darken",
       "dashed",
       "default",
       "dialog",
       "difference",
       "disabled",
+      "distribute",
       "dotted",
       "double",
       "drag",
       "dualbutton",
       "ease",
       "ease-in",
       "ease-in-out",
       "ease-out",
@@ -3278,16 +3279,18 @@ exports.CSS_PROPERTIES = {
       "inline-block",
       "inline-end",
       "inline-flex",
       "inline-grid",
       "inline-start",
       "inline-table",
       "inset",
       "inside",
+      "inter-character",
+      "inter-word",
       "intersect",
       "isolate",
       "italic",
       "justify",
       "keep-all",
       "large",
       "larger",
       "last baseline",
@@ -8807,16 +8810,33 @@ exports.CSS_PROPERTIES = {
     ],
     "values": [
       "calc",
       "inherit",
       "initial",
       "unset"
     ]
   },
+  "text-justify": {
+    "isInherited": true,
+    "subproperties": [
+      "text-justify"
+    ],
+    "supports": [],
+    "values": [
+      "auto",
+      "distribute",
+      "inherit",
+      "initial",
+      "inter-character",
+      "inter-word",
+      "none",
+      "unset"
+    ]
+  },
   "text-orientation": {
     "isInherited": true,
     "subproperties": [
       "text-orientation"
     ],
     "supports": [],
     "values": [
       "inherit",
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -2551,17 +2551,17 @@ pref("layout.css.convertFromNode.enabled
 #else
 pref("layout.css.convertFromNode.enabled", true);
 #endif
 
 // Is support for CSS "text-align: unsafe X" enabled?
 pref("layout.css.text-align-unsafe-value.enabled", false);
 
 // Is support for CSS text-justify property enabled?
-pref("layout.css.text-justify.enabled", false);
+pref("layout.css.text-justify.enabled", true);
 
 // Is support for CSS "float: inline-{start,end}" and
 // "clear: inline-{start,end}" enabled?
 #if defined(MOZ_B2G) || !defined(RELEASE_OR_BETA)
 pref("layout.css.float-logical-values.enabled", true);
 #else
 pref("layout.css.float-logical-values.enabled", false);
 #endif