Bug 1112700 - Fix assertion failure: aPropID != eCSSPropertyExtra_variable r=me

This commit is contained in:
Michael Ratcliffe 2014-12-18 09:31:28 +00:00
parent ebfa6fb7e3
commit 470080000f
2 changed files with 10 additions and 0 deletions

View File

@ -867,6 +867,11 @@ inDOMUtils::CssPropertyIsValid(const nsAString& aPropertyName,
return NS_OK;
}
if (propertyID == eCSSPropertyExtra_variable) {
*_retval = true;
return NS_OK;
}
// Get a parser, parse the property.
nsCSSParser parser;
*_retval = parser.IsValueValidForProperty(propertyID, aPropertyValue);

View File

@ -74,6 +74,11 @@
property: "content",
value: "\"hello\"",
expected: true
},
{
property: "color",
value: "var(--some-kind-of-green)",
expected: true
}
];