The object-view-box and object-overflow properties allow the content for replaced elements to paint outside its content-box, similar to ink overflow for other elements.

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.

Specification

Specification link


Final published standard: Recommendation, Living Standard, Candidate Recommendation, or similar final form

Status in Chromium

Blink


In development (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • No signal
  • No signal
  • No signals

Owners

Intent to Prototype url

Intent to Prototype thread

Comments

Spec link for object-overflow : https://drafts.csswg.org/css-images-4/#the-object-overflow

Last updated on 2022-05-10