All Downloads are FREE. Search and download functionalities are using the official Maven repository.

polyfills.matchMedia.meta.json Maven / Gradle / Ivy

The newest version!
{"aliases":["caniuse:matchmedia","modernizr:matchmedia"],"browsers":{"android":"2.1 - 2.3","blackberry":"7","ie":"6 - 9","opera":"11.5 - 12.1","op_mini":"*","op_mob":"10 - 12","safari":"4 - 5"},"dependencies":["Event"],"docs":"https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia","spec":"http://dev.w3.org/csswg/cssom-view/#the-mediaquerylist-interface","detectSource":"'matchMedia' in this","testSource":"","baseDir":"matchMedia","hasTests":true,"testsSource":"/* eslint-env mocha, browser*/\n/* global proclaim, it */\n\nit(\"should match screen\", function() {\n\tvar mql = window.matchMedia('screen');\n\tproclaim.equal(mql.matches, true);\n});\n\nit(\"should ignore 'only'\", function() {\n\tvar mql = window.matchMedia('only screen');\n\tproclaim.equal(mql.matches, true);\n});\n\nit(\"should return a MediaQueryList that has a media property representing the media query string\", function() {\n\tvar mql = window.matchMedia('screen');\n\tproclaim.equal(mql.media, 'screen');\n});\n\nit(\"should generate valid Javascript for multiple dimensions\", function() {\n\tproclaim.doesNotThrow(function() {\n\t\twindow.matchMedia('(min-width: 1px) and (max-width: 1000px)');\n\t});\n});\n\nit(\"should generate valid Javascript for dppx\", function() {\n\tproclaim.doesNotThrow(function() {\n\t\twindow.matchMedia('(min-resolution: 2dppx)');\n\t});\n});"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy