Uses calc() to calculate the `right` property value of fixed element, so that it never sits outside the container, even though it's not a child element.
Container with defined width.
Element with fixed position.