MCPcopy Create free account
hub / github.com/ampproject/amphtml / isDeclaredFixed

Method isDeclaredFixed

src/service/fixed-layer.js:375–377  ·  view source on GitHub ↗

* Whether the element is declared as fixed in any of the user's stylesheets. * Will include any matches, not necessarily currently fixed elements. * @param {!Element} element * @return {boolean}

(element)

Source from the content-addressed store, hash-verified

373 * @return {boolean}
374 */
375 isDeclaredFixed(element) {
376 return !!element[DECLARED_FIXED_PROP];
377 }
378
379 /**
380 * Whether the element is declared as sticky in any of the user's stylesheets.

Callers 2

computeMeasurements_Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected