scroll-into-view / compute-scroll-into-view

Utility for calculating what should be scrolled, how it's scrolled is up to you
https://scroll-into-view.dev#scroll-alignment
MIT License
313 stars 27 forks source link

Shadow DOM support #822

Closed arturbien closed 1 year ago

arturbien commented 2 years ago

Any plans on adding support for Shadow DOM ? It was temporarily dropped in https://github.com/stipsan/compute-scroll-into-view/pull/76

pvojtechovsky commented 2 years ago

I created a PR https://github.com/stipsan/compute-scroll-into-view/pull/829 for support of shadow DOM. I am not sure whether anchor problem is still there, but the implementation is little bit different than before so there is a chance that it will work now

sPaCeMoNk3yIam commented 2 years ago

@stipsan wdyt is needed to bring (back) support for shadow DOMs? Better test coverage of the linked PR?