Bug 1530571 - Add entries for for scroll-margin in property_database.js. r=emilio
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Tue, 26 Feb 2019 10:16:36 +0000
changeset 518934 6b22050aed7dd0e3362e90dd791f3582dbcb6927
parent 518933 079b60d94624afcc641b65667662579b5bc826ee
child 518935 aa2d2998a3219f46c2b672d11fdef815eee5eca2
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 entries for for scroll-margin in property_database.js. r=emilio All test data came from wpt. Depends on D21149 Differential Revision: https://phabricator.services.mozilla.com/D21150
layout/style/test/property_database.js
--- a/layout/style/test/property_database.js
+++ b/layout/style/test/property_database.js
@@ -7713,16 +7713,133 @@ if (IsCSSPropertyPrefEnabled("layout.css
     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" ]
   };
+  gCSSProperties["scroll-margin"] = {
+    domProp: "scrollMargin",
+    inherited: false,
+    type: CSS_TYPE_TRUE_SHORTHAND,
+    subproperties: [ "scroll-margin-top",
+                     "scroll-margin-right",
+                     "scroll-margin-bottom",
+                     "scroll-margin-left" ],
+    initial_values: [ "0" ],
+    other_values: [ "-10px", "calc(2em + 3ex)", "1px 2px", "1px 2px 3px",
+                    "1px 2px 3px 4px" ],
+    invalid_values: [ "auto", "20%", "-30%", "1px 2px 3px 4px 5px" ],
+  };
+  gCSSProperties["scroll-margin-top"] = {
+    domProp: "scrollMarginTop",
+    inherited: false,
+    type: CSS_TYPE_LONGHAND,
+    applies_to_first_letter: true,
+    applies_to_first_line: true,
+    initial_values: [ "0" ],
+    other_values: [ "-10px", "calc(2em + 3ex)" ],
+    invalid_values: [ "auto", "20%", "-30%", "1px 2px" ],
+  };
+  gCSSProperties["scroll-margin-right"] = {
+    domProp: "scrollMarginRight",
+    inherited: false,
+    type: CSS_TYPE_LONGHAND,
+    applies_to_first_letter: true,
+    applies_to_first_line: true,
+    initial_values: [ "0" ],
+    other_values: [ "-10px", "calc(2em + 3ex)" ],
+    invalid_values: [ "auto", "20%", "-30%", "1px 2px" ],
+  };
+  gCSSProperties["scroll-margin-bottom"] = {
+    domProp: "scrollMarginBottom",
+    inherited: false,
+    type: CSS_TYPE_LONGHAND,
+    applies_to_first_letter: true,
+    applies_to_first_line: true,
+    initial_values: [ "0" ],
+    other_values: [ "-10px", "calc(2em + 3ex)" ],
+    invalid_values: [ "auto", "20%", "-30%", "1px 2px" ],
+  };
+  gCSSProperties["scroll-margin-left"] = {
+    domProp: "scrollMarginLeft",
+    inherited: false,
+    type: CSS_TYPE_LONGHAND,
+    applies_to_first_letter: true,
+    applies_to_first_line: true,
+    initial_values: [ "0" ],
+    other_values: [ "-10px", "calc(2em + 3ex)" ],
+    invalid_values: [ "auto", "20%", "-30%", "1px 2px" ],
+  };
+  gCSSProperties["scroll-margin-inline"] = {
+    domProp: "scrollMarginInline",
+    inherited: false,
+    type: CSS_TYPE_TRUE_SHORTHAND,
+    subproperties: [ "scroll-margin-inline-start",
+                     "scroll-margin-inline-end" ],
+    initial_values: [ "0" ],
+    other_values: [ "-10px", "calc(2em + 3ex)", "1px 2px" ],
+    invalid_values: [ "auto", "20%", "-30%", "1px 2px 3px" ],
+  };
+  gCSSProperties["scroll-margin-inline-start"] = {
+    domProp: "scrollMarginInlineStart",
+    inherited: false,
+    type: CSS_TYPE_LONGHAND,
+    logical: true,
+    applies_to_first_letter: true,
+    applies_to_first_line: true,
+    initial_values: [ "0" ],
+    other_values: [ "-10px", "calc(2em + 3ex)" ],
+    invalid_values: [ "auto", "20%", "-30%", "1px 2px" ],
+  };
+  gCSSProperties["scroll-margin-inline-end"] = {
+    domProp: "scrollMarginInlineEnd",
+    inherited: false,
+    type: CSS_TYPE_LONGHAND,
+    logical: true,
+    applies_to_first_letter: true,
+    applies_to_first_line: true,
+    initial_values: [ "0" ],
+    other_values: [ "-10px", "calc(2em + 3ex)" ],
+    invalid_values: [ "auto", "20%", "-30%", "1px 2px" ],
+  };
+  gCSSProperties["scroll-margin-block"] = {
+    domProp: "scrollMarginBlock",
+    inherited: false,
+    type: CSS_TYPE_TRUE_SHORTHAND,
+    subproperties: [ "scroll-margin-block-start",
+                     "scroll-margin-block-end" ],
+    initial_values: [ "0" ],
+    other_values: [ "-10px", "calc(2em + 3ex)", "1px 2px" ],
+    invalid_values: [ "auto", "20%", "-30%", "1px 2px 3px" ],
+  };
+  gCSSProperties["scroll-margin-block-start"] = {
+    domProp: "scrollMarginBlockStart",
+    inherited: false,
+    type: CSS_TYPE_LONGHAND,
+    logical: true,
+    applies_to_first_letter: true,
+    applies_to_first_line: true,
+    initial_values: [ "0" ],
+    other_values: [ "-10px", "calc(2em + 3ex)" ],
+    invalid_values: [ "auto", "20%", "-30%", "1px 2px" ],
+  };
+  gCSSProperties["scroll-margin-block-end"] = {
+    domProp: "scrollMarginBlockEnd",
+    inherited: false,
+    type: CSS_TYPE_LONGHAND,
+    logical: true,
+    applies_to_first_letter: true,
+    applies_to_first_line: true,
+    initial_values: [ "0" ],
+    other_values: [ "-10px", "calc(2em + 3ex)" ],
+    invalid_values: [ "auto", "20%", "-30%", "1px 2px" ],
+  };
 }
 
 if (IsCSSPropertyPrefEnabled("layout.css.prefixes.webkit")) {
   gCSSProperties["-webkit-animation"] = {
     domProp: "webkitAnimation",
     inherited: false,
     type: CSS_TYPE_TRUE_SHORTHAND,
     alias_for: "animation",