Blog134.4K views2,776 votes0 replies1,095 following
Clipping Elements with CSS clip-path rect(): When a Simple Rectangle Beats a Polygon
CSS clip-path rect() clips an element to a rectangle using four inward edge offsets. Learn the syntax, a worked crop example, the percentage footgun, and when inset() is the better pick.