How to use the css-mediaquery.matchQuery function in css-mediaquery

To help you get started, we’ve selected a few css-mediaquery examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mitchlloyd / ember-screen / addon / window.js View on Github external
matchesMediaQuery(query) {
    if (this.stubbedMediaFeatures) {
      return matchQuery(query, this.stubbedMediaFeatures);
    } else {
      return window.matchMedia(query).matches;
    }
  }
github mitchlloyd / ember-screen / addon / window / browser.js View on Github external
matchesMediaQuery(query) {
    if (this.stubbedMediaFeatures) {
      return matchQuery(query, this.stubbedMediaFeatures);
    } else {
      return window.matchMedia(query).matches;
    }
  }

css-mediaquery

Parses and determines if a given CSS Media Query matches a set of values.

BSD
Latest version published 10 years ago

Package Health Score

67 / 100
Full package analysis

Similar packages