Bug 1383650 - Run mach devtools-css-db to sync css db r=emilio
authorviolet <violet.bugreport@gmail.com>
Thu, 16 May 2019 13:21:22 +0000
changeset 474722 21b3ac9c491755466306d68e1e198a6891c0e561
parent 474721 f9ec440d652a96149cd68945bfb638e8e4944394
child 474723 07ce2dd7db9d0ff8f68e5ab8d913aa75fe463399
push id113168
push userrmaries@mozilla.com
push dateTue, 21 May 2019 16:39:23 +0000
treeherdermozilla-inbound@3c0f78074b72 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1383650
milestone69.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 1383650 - Run mach devtools-css-db to sync css db r=emilio This is the last part of this seris of patches to implement geometry property. This particular patch just run `./mach devtools-css-db` to update db per instruction at the beginning of devtools/shared/tests/unit/test_css-properties-db.js, and also a manual addition to the animation property db. After this patch, the SVG geometry propery is implemented for <rect>, <circle>, <ellipse> and <foreignObject>. We already implemented outer <svg>. Thus the remainings are inner <svg> and <image>, which are kind of different to the others, so they will be handled in some follow-ups. Note that these patches won't impact old behavior of inner <svg> and <image>. Differential Revision: https://phabricator.services.mozilla.com/D30808
devtools/server/actors/animation-type-longhand.js
devtools/shared/css/generated/properties-db.js
--- a/devtools/server/actors/animation-type-longhand.js
+++ b/devtools/server/actors/animation-type-longhand.js
@@ -289,16 +289,18 @@ exports.ANIMATION_TYPE_FOR_LONGHANDS = [
     "border-top-right-radius",
     "border-start-start-radius",
     "border-start-end-radius",
     "border-end-start-radius",
     "border-end-end-radius",
     "bottom",
     "column-gap",
     "column-width",
+    "cx",
+    "cy",
     "flex-basis",
     "height",
     "left",
     "letter-spacing",
     "line-height",
     "margin-bottom",
     "margin-left",
     "margin-right",
@@ -312,16 +314,19 @@ exports.ANIMATION_TYPE_FOR_LONGHANDS = [
     "-moz-outline-radius-topleft",
     "-moz-outline-radius-topright",
     "offset-distance",
     "padding-bottom",
     "padding-left",
     "padding-right",
     "padding-top",
     "perspective",
+    "r",
+    "rx",
+    "ry",
     "right",
     "row-gap",
     "scroll-padding-block-start",
     "scroll-padding-block-end",
     "scroll-padding-inline-start",
     "scroll-padding-inline-end",
     "scroll-padding-top",
     "scroll-padding-right",
@@ -339,16 +344,18 @@ exports.ANIMATION_TYPE_FOR_LONGHANDS = [
     "stroke-dashoffset",
     "stroke-width",
     "-moz-tab-size",
     "text-indent",
     "top",
     "vertical-align",
     "width",
     "word-spacing",
+    "x",
+    "y",
     "z-index",
   ])],
   ["float", new Set([
     "-moz-box-flex",
     "fill-opacity",
     "flex-grow",
     "flex-shrink",
     "flood-opacity",
--- a/devtools/shared/css/generated/properties-db.js
+++ b/devtools/shared/css/generated/properties-db.js
@@ -3312,16 +3312,23 @@ exports.CSS_PROPERTIES = {
       "mask-repeat",
       "mask-position-x",
       "mask-position-y",
       "mask-clip",
       "mask-origin",
       "mask-size",
       "mask-composite",
       "mask-image",
+      "x",
+      "y",
+      "cx",
+      "cy",
+      "rx",
+      "ry",
+      "r",
       "-moz-box-align",
       "-moz-box-direction",
       "-moz-box-flex",
       "-moz-box-orient",
       "-moz-box-pack",
       "-moz-stack-sizing",
       "-moz-box-ordinal-group"
     ],
@@ -5829,16 +5836,42 @@ exports.CSS_PROPERTIES = {
       "url",
       "vertical-text",
       "w-resize",
       "wait",
       "zoom-in",
       "zoom-out"
     ]
   },
+  "cx": {
+    "isInherited": false,
+    "subproperties": [
+      "cx"
+    ],
+    "supports": [],
+    "values": [
+      "inherit",
+      "initial",
+      "revert",
+      "unset"
+    ]
+  },
+  "cy": {
+    "isInherited": false,
+    "subproperties": [
+      "cy"
+    ],
+    "supports": [],
+    "values": [
+      "inherit",
+      "initial",
+      "revert",
+      "unset"
+    ]
+  },
   "direction": {
     "isInherited": true,
     "subproperties": [
       "direction"
     ],
     "supports": [],
     "values": [
       "inherit",
@@ -8943,16 +8976,29 @@ exports.CSS_PROPERTIES = {
     "values": [
       "inherit",
       "initial",
       "none",
       "revert",
       "unset"
     ]
   },
+  "r": {
+    "isInherited": false,
+    "subproperties": [
+      "r"
+    ],
+    "supports": [],
+    "values": [
+      "inherit",
+      "initial",
+      "revert",
+      "unset"
+    ]
+  },
   "resize": {
     "isInherited": false,
     "subproperties": [
       "resize"
     ],
     "supports": [],
     "values": [
       "block",
@@ -9022,16 +9068,44 @@ exports.CSS_PROPERTIES = {
       "inherit",
       "initial",
       "over",
       "revert",
       "under",
       "unset"
     ]
   },
+  "rx": {
+    "isInherited": false,
+    "subproperties": [
+      "rx"
+    ],
+    "supports": [],
+    "values": [
+      "auto",
+      "inherit",
+      "initial",
+      "revert",
+      "unset"
+    ]
+  },
+  "ry": {
+    "isInherited": false,
+    "subproperties": [
+      "ry"
+    ],
+    "supports": [],
+    "values": [
+      "auto",
+      "inherit",
+      "initial",
+      "revert",
+      "unset"
+    ]
+  },
   "scroll-behavior": {
     "isInherited": false,
     "subproperties": [
       "scroll-behavior"
     ],
     "supports": [],
     "values": [
       "auto",
@@ -10490,16 +10564,42 @@ exports.CSS_PROPERTIES = {
       "sideways-rl",
       "tb",
       "tb-rl",
       "unset",
       "vertical-lr",
       "vertical-rl"
     ]
   },
+  "x": {
+    "isInherited": false,
+    "subproperties": [
+      "x"
+    ],
+    "supports": [],
+    "values": [
+      "inherit",
+      "initial",
+      "revert",
+      "unset"
+    ]
+  },
+  "y": {
+    "isInherited": false,
+    "subproperties": [
+      "y"
+    ],
+    "supports": [],
+    "values": [
+      "inherit",
+      "initial",
+      "revert",
+      "unset"
+    ]
+  },
   "z-index": {
     "isInherited": false,
     "subproperties": [
       "z-index"
     ],
     "supports": [],
     "values": [
       "auto",
@@ -10647,16 +10747,48 @@ exports.PREFERENCES = [
     "scroll-snap-destination",
     "layout.css.scroll-snap.enabled"
   ],
   [
     "-moz-binding",
     "layout.css.moz-binding.content.enabled"
   ],
   [
+    "scroll-margin-block-end",
+    "layout.css.scroll-snap-v1.enabled"
+  ],
+  [
+    "scroll-margin-block-start",
+    "layout.css.scroll-snap-v1.enabled"
+  ],
+  [
+    "scroll-margin-bottom",
+    "layout.css.scroll-snap-v1.enabled"
+  ],
+  [
+    "scroll-margin-inline-end",
+    "layout.css.scroll-snap-v1.enabled"
+  ],
+  [
+    "scroll-margin-inline-start",
+    "layout.css.scroll-snap-v1.enabled"
+  ],
+  [
+    "scroll-margin-left",
+    "layout.css.scroll-snap-v1.enabled"
+  ],
+  [
+    "scroll-margin-right",
+    "layout.css.scroll-snap-v1.enabled"
+  ],
+  [
+    "scroll-margin-top",
+    "layout.css.scroll-snap-v1.enabled"
+  ],
+  [
     "scroll-padding-block-end",
     "layout.css.scroll-snap-v1.enabled"
   ],
   [
     "scroll-padding-block-start",
     "layout.css.scroll-snap-v1.enabled"
   ],
   [
@@ -10679,48 +10811,16 @@ exports.PREFERENCES = [
     "scroll-padding-right",
     "layout.css.scroll-snap-v1.enabled"
   ],
   [
     "scroll-padding-top",
     "layout.css.scroll-snap-v1.enabled"
   ],
   [
-    "scroll-margin-block-end",
-    "layout.css.scroll-snap-v1.enabled"
-  ],
-  [
-    "scroll-margin-block-start",
-    "layout.css.scroll-snap-v1.enabled"
-  ],
-  [
-    "scroll-margin-bottom",
-    "layout.css.scroll-snap-v1.enabled"
-  ],
-  [
-    "scroll-margin-inline-end",
-    "layout.css.scroll-snap-v1.enabled"
-  ],
-  [
-    "scroll-margin-inline-start",
-    "layout.css.scroll-snap-v1.enabled"
-  ],
-  [
-    "scroll-margin-left",
-    "layout.css.scroll-snap-v1.enabled"
-  ],
-  [
-    "scroll-margin-right",
-    "layout.css.scroll-snap-v1.enabled"
-  ],
-  [
-    "scroll-margin-top",
-    "layout.css.scroll-snap-v1.enabled"
-  ],
-  [
     "-webkit-text-stroke-width",
     "layout.css.prefixes.webkit"
   ],
   [
     "-webkit-text-fill-color",
     "layout.css.prefixes.webkit"
   ],
   [