Bug 725036 - 'perspective' property doesn't reject negative numbers r=matt.woodrow

This commit is contained in:
Aryeh Gregor 2012-02-07 14:43:28 -05:00
parent ef894d245c
commit a428c3bcb7
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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",