Bug 1363292 followup - Update the test. r=dholbert
authorXidorn Quan <me@upsuper.org>
Wed, 31 May 2017 16:29:51 +1000
changeset 361453 190658a95c3cc6ae48ec3308d893049bb18615df
parent 361452 73abfac22f012c8f6fcfe7c732b203660f0e7ca9
child 361454 d01f0ffd5bc123782817a5ffa3fd1742043effb7
push id43774
push userxquan@mozilla.com
push dateWed, 31 May 2017 06:30:52 +0000
treeherderautoland@190658a95c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1363292
milestone55.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 1363292 followup - Update the test. r=dholbert MozReview-Commit-ID: GRHi9GbkrnG
layout/style/test/property_database.js
--- a/layout/style/test/property_database.js
+++ b/layout/style/test/property_database.js
@@ -236,16 +236,18 @@ var invalidGradientAndElementValues = [
   "-moz-element(#a+a)",
   "-moz-element(#a())",
   /* no quirks mode colors */
   "linear-gradient(red, ff00ff)",
   /* no quirks mode colors */
   "radial-gradient(at 10% bottom, ffffff, black) scroll no-repeat",
   /* no quirks mode lengths */
   "linear-gradient(red -99, yellow, green, blue 120%)",
+  /* Unitless nonzero numbers are valid as an <angle> */
+  "linear-gradient(30, red, blue)",
   /* There must be a comma between gradient-line (e.g. <angle>) and colors */
   "linear-gradient(30deg red, blue)",
   "linear-gradient(to top left red, blue)",
   "linear-gradient(to right red, blue)",
   /* Invalid color, calc() or -moz-image-rect() function */
   "linear-gradient(red, rgb(0, rubbish, 0) 50%, red)",
   "linear-gradient(red, red calc(50% + rubbish), red)",
   "linear-gradient(to top calc(50% + rubbish), red, blue)",