Just as in Offset a background image from the right using CSS I want to position my shape
some absolute value relative to the right edge of the container.
clip-path: polygon(0 0, right 1em 0, 100% 50%, right 1em 100%, 0 100%, 0 0);
This should cut a triangle from the element on the right, which is 1em long.
I cannot use % because then the triangle size would depend on the length of the element, which I don't want.
Unfortunately it does not work this way. Is there another solution?