border-radius + negative margin.

https://code.makzan.net/posts/2017-03-28-tab-like-navigation.html