Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/ampproject/amphtml
/ test-intersection-observer-polyfill.js
File
test-intersection-observer-polyfill.js
test/unit/test-intersection-observer-polyfill.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{layoutRectLtwh} from
'#core/dom/layout/rect'
;
2
3
import
{AmpDocService} from
'#service/ampdoc-impl'
;
4
import
{installHiddenObserverForDoc} from
'#service/hidden-observer-impl'
;
Callers
nothing calls this directly
Calls
12
installHiddenObserverForDoc
Function · 0.90
layoutRectLtwh
Function · 0.90
getIntersectionChangeEntry
Function · 0.90
intersectionRatio
Function · 0.90
beforeEach
Function · 0.85
func
Function · 0.85
afterEach
Function · 0.85
expect
Function · 0.85
getIframe
Function · 0.70
insert
Function · 0.70
it
Function · 0.50
destroy
Method · 0.45
Tested by
no test coverage detected