From 4961e79f82177bba42b41d03771fcee7153cf96f Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Tue, 7 Feb 2012 14:43:28 -0500 Subject: [PATCH] Bug 725036 - 'perspective' property doesn't reject negative numbers r=matt.woodrow --- layout/style/nsCSSPropList.h | 2 +- layout/style/test/property_database.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layout/style/nsCSSPropList.h b/layout/style/nsCSSPropList.h index 9acf4561ae5..ae4ce1053e1 100644 --- a/layout/style/nsCSSPropList.h +++ b/layout/style/nsCSSPropList.h @@ -2350,7 +2350,7 @@ CSS_PROP_DISPLAY( perspective, CSS_PROP_DOMPROP_PREFIXED(Perspective), CSS_PROPERTY_PARSE_VALUE, - VARIANT_NONE | VARIANT_INHERIT | VARIANT_LENGTH, + VARIANT_NONE | VARIANT_INHERIT | VARIANT_LENGTH | VARIANT_POSITIVE_LENGTH, nsnull, offsetof(nsStyleDisplay, mChildPerspective), eStyleAnimType_Coord) diff --git a/layout/style/test/property_database.js b/layout/style/test/property_database.js index 2951de6d8cc..22f1281c79b 100644 --- a/layout/style/test/property_database.js +++ b/layout/style/test/property_database.js @@ -1082,9 +1082,9 @@ var gCSSProperties = { domProp: "MozPerspective", inherited: false, type: CSS_TYPE_LONGHAND, - initial_values: [ "none", "0" ], - other_values: [ "1000px", "500.2px", "-100px", "-27.2em" ], - invalid_values: [ "pants", "200" ] + initial_values: [ "none" ], + other_values: [ "1000px", "500.2px" ], + invalid_values: [ "pants", "200", "0", "-100px", "-27.2em" ] }, "-moz-backface-visibility": { domProp: "MozBackfaceVisibility",