mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
stylo: Compute font-size calcs against appropriate base size
This commit is contained in:
parent
09df9c4316
commit
343eb23187
4 changed files with 10 additions and 7 deletions
|
@ -112,7 +112,7 @@ impl ToComputedValue for LineHeight {
|
|||
).into()
|
||||
}
|
||||
LengthOrPercentage::Calc(ref calc) => {
|
||||
let computed_calc = calc.to_computed_value_zoomed(context);
|
||||
let computed_calc = calc.to_computed_value_zoomed(context, FontBaseSize::CurrentStyle);
|
||||
let font_relative_length =
|
||||
FontRelativeLength::Em(computed_calc.percentage())
|
||||
.to_computed_value(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue