w3c/IntersectionObserver

Should scrollMargin be applied to display:hidden containers?

Closed this issue · 2 comments

According to the spec, scrollMargin is applied only to scrollPorts, and display:hidden does not qualify as a scrollport because it doesn't "allow the user to scroll clipped parts of its scrollable overflow area into view". But many of the scroll-margin WPT use overflow:hidden with the expectation that scrollMargin will be applied.

Scrollports should allow for script scrolling as well. The intent with scrollMargin was support both user and script scrolling.