viewport-segments CSS and
visualViewport.segments JS

1
2
3
4