mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
If our UI informed the page of a DPI change, we would store the new device pixel ratio and leave it at that. It would take a layout/style update (e.g. by clicking the page) to actually render the page using the new DPI. This is very visible on macOS when moving the Ladybird window from a 1x resolution monitor to a HiDPI 2x monitor. We now instantly update the backing stores and mark media queries for reevaluation. Moving the Ladybird window on macOS now immediately updates the page when dragging it to a HiDPI monitor.
6 lines
201 B
Plaintext
6 lines
201 B
Plaintext
Initial matches (at 1x): false
|
|
Change event 1: matches = true
|
|
PASS: Media query matched after DPI changed to 2x
|
|
Change event 2: matches = false
|
|
PASS: Media query unmatched after DPI changed back to 1x
|