mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
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.
28 lines
2.3 KiB
Plaintext
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 |