mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
style: bonus point: only add the condition when computing reset properties.
This commit is contained in:
parent
60511611bb
commit
ee49f0eaec
1 changed files with 7 additions and 5 deletions
|
@ -132,12 +132,14 @@ impl FontRelativeLength {
|
|||
|
||||
match *self {
|
||||
FontRelativeLength::Em(length) => {
|
||||
if context.for_non_inherited_property.is_some() {
|
||||
if matches!(base_size, FontBaseSize::CurrentStyle) {
|
||||
context.rule_cache_conditions.borrow_mut()
|
||||
.set_font_size_dependency(
|
||||
reference_font_size.into()
|
||||
);
|
||||
}
|
||||
}
|
||||
(reference_font_size, length)
|
||||
},
|
||||
FontRelativeLength::Ex(length) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue