object-view-box
Limited availability78% of usersExperimental
Allows you to specify a 'view box' for an image or video, similar to how viewBox works in SVG. This essentially lets you crop or zoom into a specific part of a replaced element using CSS.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Firefox or Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
none- Inherited
- No
- Applies to
- replaced elements
- Animation type
- asIfPossibleOtherwiseDiscrete
Quick example
.zoomed-image {
/* Crops the image to a specific rectangle area */
object-view-box: inset(10% 20% 30% 40%);
}Values
noneobject-view-box browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage78%of people can use this22% use a browser without it.
Browsers
104+
104+Mobile
104+Android
Interop 2027 candidate. Tracked for Interop 2027. Official focus areas publish early 2027; proposals are open through September 2026. See Interop 2027 →