Implement matchMedia and MediaQueryList

Fixes #13376.
This commit is contained in:
Jack Moffitt 2016-09-26 02:41:09 -06:00
parent 99ad3678fa
commit 138a0480fe
22 changed files with 500 additions and 20 deletions

View file

@ -6542,6 +6542,12 @@
"url": "/_mozilla/css/float_relative_to_position.html"
}
],
"css/matchMedia.html": [
{
"path": "css/matchMedia.html",
"url": "/_mozilla/css/matchMedia.html"
}
],
"css/media_calc_crash.html": [
{
"path": "css/media_calc_crash.html",

View file

@ -0,0 +1,15 @@
[matchMedia.html]
type: testharness
expected: OK
[window.matchMedia exists]
expected: FAIL
[MediaQueryList.matches for "(min-aspect-ratio: 1/1)"]
expected: FAIL
[MediaQueryList.matches for "(width: 200px)"]
expected: FAIL
[Resize iframe from 200x100 to 200x50, then to 100x50]
expected: FAIL