matchMedia.html
Details
- Test
/css/cssom-view/matchMedia.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| PASS | window.matchMedia is a function |
| PASS | window.matchMedia("all") matches |
| PASS | window.matchMedia("") matches |
| PASS | window.matchMedia("(min-width: 1px)") matches |
| FAIL | media query with syntax error is serialized as "not all" assert_equals: expected "not all" but got "::" |
| FAIL | iframe.matchMedia("(max-width: 199px), all and (min-width: 200px)") is serialized w/o "all" promise_test: Unhandled rejection with value: object "TypeError: iframe.contentWindow.matchMedia is not a function" |
| FAIL | iframe.matchMedia("(min-aspect-ratio: 1/1)") matches promise_test: Unhandled rejection with value: object "TypeError: iframe.contentWindow.matchMedia is not a function" |
| FAIL | iframe.matchMedia("(width: 200px)") matches promise_test: Unhandled rejection with value: object "TypeError: iframe.contentWindow.matchMedia is not a function" |
| FAIL | iframe.matchMedia("(max-height: 50px)") matches promise_test: Unhandled rejection with value: object "TypeError: iframe.contentWindow.matchMedia is not a function" |
| FAIL | iframe.matchMedia("(min-width: 150px)") matches promise_test: Unhandled rejection with value: object "TypeError: iframe.contentWindow.matchMedia is not a function" |