Bug 1530571 - Add entries for for scroll-padding in property_database.js. r=emilio
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Tue, 26 Feb 2019 10:16:48 +0000
changeset 518935 aa2d2998a3219f46c2b672d11fdef815eee5eca2
parent 518934 6b22050aed7dd0e3362e90dd791f3582dbcb6927
child 518936 6f9ea704602d4d9ea63afe2627bb3812d851373d
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-padding in property_database.js. r=emilio All test data came from wpt. Depends on D21150 Differential Revision: https://phabricator.services.mozilla.com/D21151
layout/style/test/property_database.js
--- a/layout/style/test/property_database.js
+++ b/layout/style/test/property_database.js
@@ -7830,16 +7830,127 @@ if (IsCSSPropertyPrefEnabled("layout.css
     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-padding"] = {
+    domProp: "scrollPadding",
+    inherited: false,
+    type: CSS_TYPE_TRUE_SHORTHAND,
+    subproperties: [ "scroll-padding-top",
+                     "scroll-padding-right",
+                     "scroll-padding-bottom",
+                     "scroll-padding-left" ],
+    initial_values: [ "auto" ],
+    other_values: [ "10px", "0", "20%", "calc(2em + 3ex)", "1px 2px",
+                    "1px 2px 3%", "1px 2px 3% 4px", "1px auto" ],
+    invalid_values: [ "20", "-20px" ]
+  };
+  gCSSProperties["scroll-padding-top"] = {
+    domProp: "scrollPaddingTop",
+    inherited: false,
+    type: CSS_TYPE_LONGHAND,
+    initial_values: [ "auto" ],
+    other_values: [ "0", "10px", "20%", "calc(2em + 3ex)", "calc(50% + 60px)",
+                    "calc(-50px)" ],
+    invalid_values: [ "20", "-20px" ],
+  };
+  gCSSProperties["scroll-padding-right"] = {
+    domProp: "scrollPaddingRight",
+    inherited: false,
+    type: CSS_TYPE_LONGHAND,
+    initial_values: [ "auto" ],
+    other_values: [ "0", "10px", "20%", "calc(2em + 3ex)", "calc(50% + 60px)",
+                    "calc(-50px)" ],
+    invalid_values: [ "20", "-20px" ],
+  };
+  gCSSProperties["scroll-padding-bottom"] = {
+    domProp: "scrollPaddingBottom",
+    inherited: false,
+    type: CSS_TYPE_LONGHAND,
+    initial_values: [ "auto" ],
+    other_values: [ "0", "10px", "20%", "calc(2em + 3ex)", "calc(50% + 60px)",
+                    "calc(-50px)" ],
+    invalid_values: [ "20", "-20px" ],
+  };
+  gCSSProperties["scroll-padding-left"] = {
+    domProp: "scrollPaddingLeft",
+    inherited: false,
+    type: CSS_TYPE_LONGHAND,
+    initial_values: [ "auto" ],
+    other_values: [ "0", "10px", "20%", "calc(2em + 3ex)", "calc(50% + 60px)",
+                    "calc(-50px)" ],
+    invalid_values: [ "20", "-20px" ],
+  };
+  gCSSProperties["scroll-padding-inline"] = {
+    domProp: "scrollPaddingInline",
+    inherited: false,
+    type: CSS_TYPE_TRUE_SHORTHAND,
+    subproperties: [ "scroll-padding-inline-start",
+                     "scroll-padding-inline-end" ],
+    initial_values: [ "auto", "auto auto" ],
+    other_values: [ "10px", "0", "20%", "calc(2em + 3ex)", "1px 2px",
+                    "1px auto" ],
+    invalid_values: [ "20", "-20px" ]
+  };
+  gCSSProperties["scroll-padding-inline-start"] = {
+    domProp: "scrollPaddingInlineStart",
+    inherited: false,
+    type: CSS_TYPE_LONGHAND,
+    logical: true,
+    initial_values: [ "auto" ],
+    other_values: [ "0", "10px", "20%", "calc(2em + 3ex)", "calc(50% + 60px)",
+                    "calc(-50px)" ],
+    invalid_values: [ "20", "-20px" ],
+  };
+  gCSSProperties["scroll-padding-inline-end"] = {
+    domProp: "scrollPaddingInlineEnd",
+    inherited: false,
+    type: CSS_TYPE_LONGHAND,
+    logical: true,
+    initial_values: [ "auto" ],
+    other_values: [ "0", "10px", "20%", "calc(2em + 3ex)", "calc(50% + 60px)",
+                    "calc(-50px)" ],
+    invalid_values: [ "20", "-20px" ],
+  };
+  gCSSProperties["scroll-padding-block"] = {
+    domProp: "scrollPaddingBlock",
+    inherited: false,
+    type: CSS_TYPE_TRUE_SHORTHAND,
+    subproperties: [ "scroll-padding-block-start",
+                     "scroll-padding-block-end" ],
+    initial_values: [ "auto", "auto auto" ],
+    other_values: [ "10px", "0", "20%", "calc(2em + 3ex)", "1px 2px",
+                    "1px auto" ],
+    invalid_values: [ "20", "-20px" ]
+  };
+  gCSSProperties["scroll-padding-block-start"] = {
+    domProp: "scrollPaddingBlockStart",
+    inherited: false,
+    type: CSS_TYPE_LONGHAND,
+    logical: true,
+    initial_values: [ "auto" ],
+    other_values: [ "0", "10px", "20%", "calc(2em + 3ex)", "calc(50% + 60px)",
+                    "calc(-50px)" ],
+    invalid_values: [ "20", "-20px" ],
+  };
+  gCSSProperties["scroll-padding-block-end"] = {
+    domProp: "scrollPaddingBlockEnd",
+    inherited: false,
+    type: CSS_TYPE_LONGHAND,
+    logical: true,
+    initial_values: [ "auto" ],
+    other_values: [ "0", "10px", "20%", "calc(2em + 3ex)", "calc(50% + 60px)",
+                    "calc(-50px)" ],
+    invalid_values: [ "20", "-20px" ],
+  };
 }
 
 if (IsCSSPropertyPrefEnabled("layout.css.prefixes.webkit")) {
   gCSSProperties["-webkit-animation"] = {
     domProp: "webkitAnimation",
     inherited: false,
     type: CSS_TYPE_TRUE_SHORTHAND,
     alias_for: "animation",