I have a uniquely shaped box with a diagonal line at the end. I want to add a border around it, but the border also follows the shape of the box.
Is there a way to apply a border to the clipped area using only CSS and HTML? So that the white part has a black border before transitioning to yellow?
.yellowclippedbox {
background-color: #F1BE3E;
color: #880000;
clip-path: polygon(20% 0, 100% 0%, 100% 100%, 0% 100%);
}