mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1112700 - Fix assertion failure: aPropID != eCSSPropertyExtra_variable r=me
This commit is contained in:
parent
ebfa6fb7e3
commit
470080000f
@ -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);
|
||||
|
@ -74,6 +74,11 @@
|
||||
property: "content",
|
||||
value: "\"hello\"",
|
||||
expected: true
|
||||
},
|
||||
{
|
||||
property: "color",
|
||||
value: "var(--some-kind-of-green)",
|
||||
expected: true
|
||||
}
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user