MCPcopy
hub / github.com/ampproject/amphtml / resolveMatchQuery

Method resolveMatchQuery

src/core/dom/media-query-props.js:45–52  ·  view source on GitHub ↗

* @param {string} queryString * @return {boolean} value

(queryString)

Source from the content-addressed store, hash-verified

43 * @return {boolean} value
44 */
45 resolveMatchQuery(queryString) {
46 // This will create a list query like this:
47 // `[{query: matchMedia(queryHeadString), value: true}, {query: null, value: false}]`
48 return (
49 this.resolve_(queryString, parseMediaQueryMatchExpr, TRUE_VALUE) ===
50 TRUE_VALUE
51 );
52 }
53
54 /**
55 * @param {string} exprString

Callers 2

applyMediaAttrs_Method · 0.80

Calls 1

resolve_Method · 0.95

Tested by

no test coverage detected