DEV Community

Discussion on: Recreating `border-image` with `background-image` for the curious

Collapse
 
afif profile image
Temani Afif

why doing this? I wouldn't call this an equivalent because all depend on the the image you will be using

Collapse
 
jsnkuhn profile image
jsnkuhn

The point is to show the absurdity of people's constant reaction to use of border-image with "why not just use background"

Collapse
 
afif profile image
Temani Afif

there is no absurdity. Each method has its use cases and you are not demonstrating anything by using a generic code. Better give a real example with a real image if you want to highlight a fact or to compare between both method.

Both code provided aren't equivalent at all.