Fix BoxShadow property incorrectly considered const

We steal the bindings for the geometry from the containing element,
so we should also take the analysis.

Fixes #1233
This commit is contained in:
Olivier Goffart 2022-05-05 19:02:13 +02:00 committed by Olivier Goffart
parent 0c19751a1e
commit 76f3fcd89f
3 changed files with 45 additions and 0 deletions

View file

@ -1934,4 +1934,14 @@ pub fn adjust_geometry_for_injected_parent(injected_parent: &ElementRc, old_elem
)
}),
));
injected_parent.borrow().property_analysis.borrow_mut().extend(
["x", "y", "z"].into_iter().filter_map(|x| {
old_elem
.borrow()
.property_analysis
.borrow()
.get_key_value(x)
.map(|(k, v)| (k.clone(), v.clone()))
}),
);
}