object-view-box was suggested by Jake Archibald early this year. It allows us to crop or resize replaced HTML elements like an </img> or a <video> It will help us in drawing an inset and control the four edges, just like we deal with margin or padding.

4m read timeFrom ishadeed.com
Post cover image
Table of contents
The problemIntroducing object-view-boxZooming in or outDemoConclusion
2 Comments

Sort: