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

Method isDeclaredSticky

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

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

(element)

Source from the content-addressed store, hash-verified

383 * @return {boolean}
384 */
385 isDeclaredSticky(element) {
386 return !!element[DECLARED_STICKY_PROP];
387 }
388
389 /**
390 * Performs fixed/sticky actions.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected