Files
ladybird/Tests/LibWeb/Text/expected/device-pixel-ratio-media-query.txt
Jelle Raaijmakers c56c933014 LibWeb+WebContent: Instantly update DPI for painting and media queries
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.
2026-02-06 09:01:26 +01:00

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