diff --git a/components/style/values/specified/length.rs b/components/style/values/specified/length.rs index c4da56cf600..4a5f213d976 100644 --- a/components/style/values/specified/length.rs +++ b/components/style/values/specified/length.rs @@ -132,7 +132,7 @@ impl FontRelativeLength { match *self { FontRelativeLength::Em(length) => { - if !matches!(base_size, FontBaseSize::InheritedStyle) { + if matches!(base_size, FontBaseSize::CurrentStyle) { context.rule_cache_conditions.borrow_mut() .set_font_size_dependency( reference_font_size.into()