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.
According to the spec,
scrollMargin
is applied only toscrollPorts
, anddisplay:hidden
does not qualify as ascrollport
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 useoverflow:hidden
with the expectation thatscrollMargin
will be applied.