There is an issue when a shape is applied to a container with borders. When the shape is applied at the bottom, the bottom border is not visible. To solve the issue, an extra border value needs to be added (So if normally the border was 1px, it would need to be adjusted to 2px). Same for the shape positioned on top.
Is that expected behavior?