Mask border for one side of an element

This demo uses the mask CSS property. You can use multiple values, so to get this effect we are chaining together our border (in this case, a caret icon) and a simple rectangle shape to take up the remainder of the element.