Parse the first component of an IntersectionObserverrootMargin string (e.g. "2000px", "100px 50px") into a pixel number. Returns 0 when the value is missing, percentage-based, or otherwise unparseable โ this is intentionally conservative so the eager-load fallback never fires for containers that the observer itself would not consider intersecting.
Parse the first component of an
IntersectionObserverrootMarginstring (e.g."2000px","100px 50px") into a pixel number. Returns0when the value is missing, percentage-based, or otherwise unparseable โ this is intentionally conservative so the eager-load fallback never fires for containers that the observer itself would not consider intersecting.