Bug 1337655 part 1: Move some prefixed gradient values to pref-controlled sections of property_database.js. r=emilio
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 29 Nov 2018 18:27:28 +0000
changeset 505199 11965d6a2fca3d51187eece61e0e61bafecd6bf8
parent 505198 a0e0ae690520f845febd99f243e7910fda287aad
child 505200 54649cf34d98c313a706c333b395b1aff6c3c260
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1337655
milestone65.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 1337655 part 1: Move some prefixed gradient values to pref-controlled sections of property_database.js. r=emilio Differential Revision: https://phabricator.services.mozilla.com/D13370
layout/style/test/property_database.js
--- a/layout/style/test/property_database.js
+++ b/layout/style/test/property_database.js
@@ -233,22 +233,16 @@ var validGradientAndElementValues = [
   "radial-gradient(at calc(-25%) top, red, blue)",
   "radial-gradient(at left calc(-25%), red, blue)",
   "radial-gradient(at calc(-25px) top, red, blue)",
   "radial-gradient(at left calc(-25px), red, blue)",
   "radial-gradient(at calc(100px + -25%) top, red, blue)",
   "radial-gradient(at left calc(100px + -25%), red, blue)",
   "radial-gradient(at calc(100px + -25px) top, red, blue)",
   "radial-gradient(at left calc(100px + -25px), red, blue)",
-
-  "-webkit-linear-gradient(top, red, blue)",
-  "-moz-linear-gradient(top, red, blue)",
-  "-moz-linear-gradient(center 0%, red, blue)",
-  "-moz-linear-gradient(50% top, red, blue)",
-  "-moz-linear-gradient(50% 0%, red, blue)",
 ];
 var invalidGradientAndElementValues = [
   "-moz-element(#a:1)",
   "-moz-element(a#a)",
   "-moz-element(#a a)",
   "-moz-element(#a+a)",
   "-moz-element(#a())",
   /* no quirks mode colors */
@@ -642,16 +636,17 @@ if (IsCSSPropertyPrefEnabled("layout.css
 
     // Contain/cover keywords (valid only for -moz/-webkit prefixed):
     "-webkit-radial-gradient(cover, red, blue)",
     "-webkit-radial-gradient(cover circle, red, blue)",
     "-webkit-radial-gradient(contain, red, blue)",
     "-webkit-radial-gradient(contain ellipse, red, blue)",
 
     // Initial side/corner/point (valid only for -moz/-webkit prefixed):
+    "-webkit-linear-gradient(top, red, blue)",
     "-webkit-linear-gradient(left, red, blue)",
     "-webkit-linear-gradient(bottom, red, blue)",
     "-webkit-linear-gradient(right top, red, blue)",
     "-webkit-linear-gradient(top right, red, blue)",
     "-webkit-radial-gradient(right, red, blue)",
     "-webkit-radial-gradient(left bottom, red, blue)",
     "-webkit-radial-gradient(bottom left, red, blue)",
     "-webkit-radial-gradient(center, red, blue)",
@@ -845,16 +840,21 @@ if (IsCSSPropertyPrefEnabled("layout.css
     "-moz-linear-gradient(red, yellow, blue)",
     "-moz-linear-gradient(red 1px, yellow 20%, blue 24em, green)",
     "-moz-linear-gradient(red, yellow, green, blue 50%)",
     "-moz-linear-gradient(red -50%, yellow -25%, green, blue)",
     "-moz-linear-gradient(red -99px, yellow, green, blue 120%)",
     "-moz-linear-gradient(#ffff00, #ef3, rgba(10, 20, 30, 0.4))",
     "-moz-linear-gradient(rgba(10, 20, 30, 0.4), #ffff00, #ef3)",
 
+    "-moz-linear-gradient(top, red, blue)",
+    "-moz-linear-gradient(center 0%, red, blue)",
+    "-moz-linear-gradient(50% top, red, blue)",
+    "-moz-linear-gradient(50% 0%, red, blue)",
+
     "-moz-linear-gradient(to top, red, blue)",
     "-moz-linear-gradient(to bottom, red, blue)",
     "-moz-linear-gradient(to left, red, blue)",
     "-moz-linear-gradient(to right, red, blue)",
     "-moz-linear-gradient(to top left, red, blue)",
     "-moz-linear-gradient(to top right, red, blue)",
     "-moz-linear-gradient(to bottom left, red, blue)",
     "-moz-linear-gradient(to bottom right, red, blue)",