style: Don't cache structs with custom property references.

This commit is contained in:
Cameron McCormack 2017-09-13 16:38:46 +08:00
parent 30982b92c8
commit fd5fe0a8e3

View file

@ -3298,6 +3298,10 @@ where
for (declaration, cascade_level) in iter_declarations() {
let mut declaration = match *declaration {
PropertyDeclaration::WithVariables(id, ref unparsed) => {
if !id.inherited() {
context.rule_cache_conditions.borrow_mut()
.set_uncacheable();
}
Cow::Owned(unparsed.substitute_variables(
id,
&context.builder.custom_properties,