diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/mediaqueries/media-query-matches-in-iframe.txt b/Tests/LibWeb/Text/expected/wpt-import/css/mediaqueries/media-query-matches-in-iframe.txt new file mode 100644 index 00000000000..d321602ae2e --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/mediaqueries/media-query-matches-in-iframe.txt @@ -0,0 +1,27 @@ +Harness status: OK + +Found 22 tests + +22 Fail +Fail matchMedia('(max-width: 150px)').matches should update immediately +Fail matchMedia('(width: 100px)').matches should update immediately +Fail matchMedia('(orientation: portrait)').matches should update immediately +Fail matchMedia('(aspect-ratio: 1/1)').matches should update immediately +Fail matchMedia('(max-aspect-ratio: 4/3)').matches should update immediately +Fail matchMedia('(height: 100px)').matches should update immediately +Fail matchMedia('(max-height: 150px)').matches should update immediately +Fail matchMedia('(min-aspect-ratio: 3/4)').matches should update immediately +Fail matchMedia('(min-height: 150px)').matches should update immediately +Fail matchMedia('(aspect-ratio: 1/2)').matches should update immediately +Fail matchMedia('(min-width: 150px)').matches should update immediately +Fail matchMedia('(min-aspect-ratio: 4/3)').matches should update immediately +Fail matchMedia('(max-width: 150px)') should not receive a change event until update the rendering step of HTML5 event loop +Fail matchMedia('(width: 100px)') should not receive a change event until update the rendering step of HTML5 event loop +Fail matchMedia('(orientation: portrait)') should not receive a change event until update the rendering step of HTML5 event loop +Fail matchMedia('(aspect-ratio: 1/1)') should not receive a change event until update the rendering step of HTML5 event loop +Fail 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 \ No newline at end of file diff --git a/Tests/LibWeb/Text/input/wpt-import/css/mediaqueries/media-query-matches-in-iframe.html b/Tests/LibWeb/Text/input/wpt-import/css/mediaqueries/media-query-matches-in-iframe.html new file mode 100644 index 00000000000..069837a02a1 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/mediaqueries/media-query-matches-in-iframe.html @@ -0,0 +1,104 @@ + + + + + + + + +