It’s fairly common for large pages with multiple sections (documentation sites for example) to have a floating nav that highlights the item corresponding to what section you’re scrolled to. With :has()
we can now do this without JavaScript and with another CSS trick, we can make it stick too!