Closed Bug 1783377 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 35349 - Add tests for viewport dependent media queries inside iframe

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 35349 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/35349
Details from upstream follow.

Ryosuke Niwa <rniwa@webkit.org> wrote:

Add tests for viewport dependent media queries inside iframe

This was written for WebKit: https://commits.webkit.org/253123@main

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI

Total 1 tests and 22 subtests

Status Summary

Firefox

OK : 1
FAIL: 22

Chrome

OK : 1
PASS: 12
FAIL: 10

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /css/mediaqueries/media-query-matches-in-iframe.html [wpt.fyi]
    • matchMedia('(max-width: 150px)').matches should update immediately: FAIL (Chrome: PASS)
    • matchMedia('(width: 100px)').matches should update immediately: FAIL (Chrome: PASS)
    • matchMedia('(orientation: portrait)').matches should update immediately: FAIL (Chrome: PASS)
    • matchMedia('(aspect-ratio: 1/1)').matches should update immediately: FAIL (Chrome: PASS)
    • matchMedia('(max-aspect-ratio: 4/3)').matches should update immediately: FAIL (Chrome: PASS)
    • matchMedia('(height: 100px)').matches should update immediately: FAIL (Chrome: PASS)
    • matchMedia('(max-height: 150px)').matches should update immediately: FAIL (Chrome: PASS)
    • matchMedia('(min-aspect-ratio: 3/4)').matches should update immediately: FAIL (Chrome: PASS)
    • matchMedia('(min-height: 150px)').matches should update immediately: FAIL (Chrome: PASS)
    • matchMedia('(aspect-ratio: 1/2)').matches should update immediately: FAIL (Chrome: PASS)
    • matchMedia('(min-width: 150px)').matches should update immediately: FAIL (Chrome: PASS)
    • matchMedia('(min-aspect-ratio: 4/3)').matches should update immediately: FAIL (Chrome: PASS)
    • matchMedia('(max-width: 150px)') should not receive a change event until update the rendering step of HTML5 event loop: FAIL (Chrome: FAIL)
    • matchMedia('(width: 100px)') should not receive a change event until update the rendering step of HTML5 event loop: FAIL (Chrome: FAIL)
    • matchMedia('(orientation: portrait)') should not receive a change event until update the rendering step of HTML5 event loop: FAIL (Chrome: FAIL)
    • matchMedia('(aspect-ratio: 1/1)') should not receive a change event until update the rendering step of HTML5 event loop: FAIL (Chrome: FAIL)
    • matchMedia('(max-aspect-ratio: 4/3)') should not receive a change event until update the rendering step of HTML5 event loop: FAIL (Chrome: FAIL)
    • matchMedia('(max-width: 150px)') should receive a change event after resize event on the window but before a requestAnimationFrame callback is called: FAIL (Chrome: FAIL)
    • matchMedia('(width: 100px)') should receive a change event after resize event on the window but before a requestAnimationFrame callback is called: FAIL (Chrome: FAIL)
    • matchMedia('(orientation: portrait)') should receive a change event after resize event on the window but before a requestAnimationFrame callback is called: FAIL (Chrome: 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 (Chrome: 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: FAIL (Chrome: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ec9f96057209 [wpt PR 35349] - Add tests for viewport dependent media queries inside iframe, a=testonly https://hg.mozilla.org/integration/autoland/rev/bc8da6e33afd [wpt PR 35349] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.