mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
layout: More conservatively replace Stylist's Device (#31857)
Instead of replacing Stylist's device on every reflow, only replace it when the viewport changes. In addition, preserve the root font size from the previous reflow fixing an issue where `rem` units were not properly computed between reflows. This fixes a bug where fonts that are sized using `rem` units change size on reload.
This commit is contained in:
parent
b71de92569
commit
bf3798bbde
8 changed files with 95 additions and 61 deletions
|
@ -1,3 +0,0 @@
|
|||
[detached_layout.html]
|
||||
[Detached layout doesn't panic]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue