Bug 1530571 - Add an entry for scroll-snap-align in property_database.js. r=emilio
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Tue, 26 Feb 2019 10:16:18 +0000
changeset 518933 079b60d94624afcc641b65667662579b5bc826ee
parent 518932 b7080c6d1c050c10a2b452c44b08fe000bdfa44b
child 518934 6b22050aed7dd0e3362e90dd791f3582dbcb6927
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1530571
milestone67.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 1530571 - Add an entry for scroll-snap-align in property_database.js. r=emilio All test data came from scroll-snap-align-{valid,invalid}.html in wpt. Differential Revision: https://phabricator.services.mozilla.com/D21149
layout/style/test/property_database.js
--- a/layout/style/test/property_database.js
+++ b/layout/style/test/property_database.js
@@ -7703,16 +7703,28 @@ if (IsCSSPropertyPrefEnabled("layout.css
     inherited: false,
     type: CSS_TYPE_LONGHAND,
     initial_values: [ "none" ],
     other_values: ["mandatory", "proximity"],
     invalid_values: [ "auto",  "1px" ]
   };
 }
 
+if (IsCSSPropertyPrefEnabled("layout.css.scroll-snap-v1.enabled")) {
+  gCSSProperties["scroll-snap-align"] = {
+    domProp: "scrollSnapAlign",
+    inherited: false,
+    type: CSS_TYPE_LONGHAND,
+    initial_values: [ "none" ],
+    other_values: [ "start", "end", "center", "start none", "center end",
+                    "start start" ],
+    invalid_values: [ "auto", "start invalid", "start end center" ]
+  };
+}
+
 if (IsCSSPropertyPrefEnabled("layout.css.prefixes.webkit")) {
   gCSSProperties["-webkit-animation"] = {
     domProp: "webkitAnimation",
     inherited: false,
     type: CSS_TYPE_TRUE_SHORTHAND,
     alias_for: "animation",
     subproperties: [ "animation-name", "animation-duration", "animation-timing-function", "animation-delay", "animation-direction", "animation-fill-mode", "animation-iteration-count", "animation-play-state" ],
   };