--- a/layout/style/test/property_database.js
+++ b/layout/style/test/property_database.js
@@ -127,16 +127,19 @@ var validGradientAndElementValues = [
"linear-gradient(.414rad, red 50%, 50%, blue 50%)",
"linear-gradient(.414rad, red 50%, 20%, blue 50%)",
"linear-gradient(.414rad, red 50%, 30%, blue 10%)",
"linear-gradient(to right bottom, red, 20%, green 50%, 65%, blue)",
"linear-gradient(to right bottom, red, 20%, green 10%, blue)",
"linear-gradient(to right bottom, red, 50%, green 50%, 50%, blue)",
"linear-gradient(to right bottom, red, 0%, green 50%, 100%, blue)",
+ /* Unitless 0 is valid as an <angle> */
+ "linear-gradient(0, red, blue)",
+
"radial-gradient(red, blue)",
"radial-gradient(red, yellow, blue)",
"radial-gradient(red 1px, yellow 20%, blue 24em, green)",
"radial-gradient(red, yellow, green, blue 50%)",
"radial-gradient(red -50%, yellow -25%, green, blue)",
"radial-gradient(red -99px, yellow, green, blue 120%)",
"radial-gradient(#ffff00, #ef3, rgba(10, 20, 30, 0.4))",
@@ -233,18 +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 0 is invalid as an <angle> */
- "linear-gradient(0, red, blue)",
+ /* 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)",