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

Method attemptCollapse

src/service/mutator-interface.js:52–52  ·  view source on GitHub ↗

* Return a promise that requests runtime to collapse this element. * The runtime will schedule this request and first attempt to resize * the element to height and width 0. If success runtime will set element * display to none, and notify element owner of this collapse. * @param {!Elemen

(element)

Source from the content-addressed store, hash-verified

50 * @return {!Promise}
51 */
52 attemptCollapse(element) {}
53
54 /**
55 * Collapses the element: ensures that it's `display:none`, notifies its

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected