MCPcopy
hub / github.com/reisxd/TizenTube / isDelegableContainer

Function isDelegableContainer

mods/spatial-navigation-polyfill.js:827–829  ·  view source on GitHub ↗

* Decide whether an element is delegable container or not. * NOTE: THIS IS NON-NORMATIVE API. * @function isDelegableContainer * @param element {Node} element * @returns {boolean}

(element)

Source from the content-addressed store, hash-verified

825 * @returns {boolean}
826 */
827 function isDelegableContainer(element) {
828 return readCssVar(element, 'spatial-navigation-contain') === 'delegable';
829 }
830
831 /**
832 * Decide whether an element is a scrollable container or not.

Callers 2

spatialNavigationSearchFunction · 0.85

Calls 1

readCssVarFunction · 0.85

Tested by

no test coverage detected