diff --git a/components/style/matching.rs b/components/style/matching.rs index cf6da78bc19..37694bc0538 100644 --- a/components/style/matching.rs +++ b/components/style/matching.rs @@ -413,6 +413,15 @@ trait PrivateMatchMethods: TElement { } } + #[cfg(feature = "servo")] + { + // We may need to set or propagate the CAN_BE_FRAGMENTED bit + // on our children. + if old_values.is_multicol() != new_values.is_multicol() { + return ChildCascadeRequirement::MustCascadeChildren; + } + } + // We could prove that, if our children don't inherit reset // properties, we can stop the cascade. ChildCascadeRequirement::MustCascadeChildrenIfInheritResetStyle