mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
style: Avoid double-applying text-zoom for keywords.
Bug: 1412743 Reviewed-by: Manishearth
This commit is contained in:
parent
1f6c16ad04
commit
ed9cf6b4eb
3 changed files with 13 additions and 8 deletions
|
@ -316,7 +316,7 @@ impl FontSize {
|
|||
FontSize::Keyword(i) => {
|
||||
// As a specified keyword, this is keyword derived
|
||||
info = Some(i);
|
||||
context.maybe_zoom_text(i.kw.to_computed_value(context).scale_by(i.factor) + i.offset)
|
||||
i.to_computed_value(context)
|
||||
}
|
||||
FontSize::Smaller => {
|
||||
info = compose_keyword(1. / LARGER_FONT_SIZE_RATIO);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue