Bug 1343512 - Let CSS text-justify property ride the train. r=xidorn
authorJeremy Chen <jeremychen@mozilla.com>
Mon, 06 Mar 2017 14:30:18 +0800
changeset 346152 28cef9a988124c549b559b4d91b912079e9f78c6
parent 346151 654e746384064837d62d94de035b63a81bdf2783
child 346153 c679739e5df20e80b26f73c0c085cb2cbd28cff6
push id31459
push usercbook@mozilla.com
push dateTue, 07 Mar 2017 14:05:14 +0000
treeherdermozilla-central@1fb56ba248d5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersxidorn
bugs1343512
milestone54.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 1343512 - Let CSS text-justify property ride the train. r=xidorn 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
@@ -2554,17 +2554,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