I've learned this trick about 5 years ago and I've waited until last week to find a good reason to use it. Most beautiful day of my life :')
Definitely a rare use case, but I needed to make a chalkboard that scaled based on content layout and screen size, and this was the best way to do that.
Not so rare before border-radius was invented, but at the time border-image didn't exist either, so... Yeah pretty rare.
border-radius
border-image
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I've learned this trick about 5 years ago and I've waited until last week to find a good reason to use it. Most beautiful day of my life :')
Definitely a rare use case, but I needed to make a chalkboard that scaled based on content layout and screen size, and this was the best way to do that.
Not so rare before
border-radius
was invented, but at the timeborder-image
didn't exist either, so... Yeah pretty rare.