Files
ladybird/Tests/LibWeb/Text/expected/wpt-import/css/mediaqueries/media-query-matches-in-iframe.txt
Andreas Kling c9cd795257 LibWeb: Don't lose change events on MediaQueryList internal state change
MediaQueryList will now remember if a state change occurred when
evaluating its match state. This memory can then be used by the document
later on when it's updating all queries, to ensure that we don't forget
to fire at least one change event.

This also required plumbing the system visibility state to initial
about:blank documents, since otherwise they would be stuck in "hidden"
state indefinitely and never evaluate their media queries.
2025-02-13 20:52:31 +01:00

28 lines
2.3 KiB
Plaintext

Harness status: OK
Found 22 tests
17 Pass
5 Fail
Pass matchMedia('(max-width: 150px)').matches should update immediately
Pass matchMedia('(width: 100px)').matches should update immediately
Pass matchMedia('(orientation: portrait)').matches should update immediately
Pass matchMedia('(aspect-ratio: 1/1)').matches should update immediately
Pass matchMedia('(max-aspect-ratio: 4/3)').matches should update immediately
Pass matchMedia('(height: 100px)').matches should update immediately
Pass matchMedia('(max-height: 150px)').matches should update immediately
Pass matchMedia('(min-aspect-ratio: 3/4)').matches should update immediately
Pass matchMedia('(min-height: 150px)').matches should update immediately
Pass matchMedia('(aspect-ratio: 1/2)').matches should update immediately
Pass matchMedia('(min-width: 150px)').matches should update immediately
Pass matchMedia('(min-aspect-ratio: 4/3)').matches should update immediately
Pass matchMedia('(max-width: 150px)') should not receive a change event until update the rendering step of HTML5 event loop
Pass matchMedia('(width: 100px)') should not receive a change event until update the rendering step of HTML5 event loop
Pass matchMedia('(orientation: portrait)') should not receive a change event until update the rendering step of HTML5 event loop
Pass matchMedia('(aspect-ratio: 1/1)') should not receive a change event until update the rendering step of HTML5 event loop
Pass matchMedia('(max-aspect-ratio: 4/3)') should not receive a change event until update the rendering step of HTML5 event loop
Fail matchMedia('(max-width: 150px)') should receive a change event after resize event on the window but before a requestAnimationFrame callback is called
Fail matchMedia('(width: 100px)') should receive a change event after resize event on the window but before a requestAnimationFrame callback is called
Fail matchMedia('(orientation: portrait)') should receive a change event after resize event on the window but before a requestAnimationFrame callback is called
Fail matchMedia('(aspect-ratio: 1/1)') should receive a change event after resize event on the window but before a requestAnimationFrame callback is called
Fail matchMedia('(max-aspect-ratio: 4/3)') should receive a change event after resize event on the window but before a requestAnimationFrame callback is called