Style sticky elements when they are stuck

It is now possible to detect if a position: sticky element is stuck with CSS.