← Back to release summary

CSS object-view-box

Category
CSS
Type
New or changed feature
Status
Enabled by default (Chrome 104)
Intent stage
Prepare to ship

Summary

object-view-box allows the author to specify a subset within an image that should draw within the content box of the target replaced element. This enables an author to create an image with a custom glow or shadow applied, with proper ink-overflow behavior like a CSS shadow would have.

Motivation

object-view-box and object-overflow allows the author to specify a subset within an image that should draw within the content box of the target replaced element. This enables an author to a create an image with a custom glow or shadow applied, with proper ink-overflow behavior like a CSS shadow would have.

Standards & signals

Explainers: https://github.com/w3c/csswg-drafts/issues/7058

View on chromestatus.com