mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
style: Only zoom absolute lengths.
As silly as it may seem to specify font-sizes using viewport units, we weren't handling zoom for them correctly either. Bug: 1388588 Reviewed-by: Manishearth MozReview-Commit-ID: 3Q6phYAu5CE
This commit is contained in:
parent
77cb5371b3
commit
7d813d8f25
3 changed files with 31 additions and 14 deletions
|
@ -135,8 +135,7 @@ impl<'a> Context<'a> {
|
|||
&self.builder
|
||||
}
|
||||
|
||||
|
||||
/// Apply text-zoom if enabled
|
||||
/// Apply text-zoom if enabled.
|
||||
#[cfg(feature = "gecko")]
|
||||
pub fn maybe_zoom_text(&self, size: NonNegativeAu) -> NonNegativeAu {
|
||||
// We disable zoom for <svg:text> by unsetting the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue