CSS content-size

The content-size size property allows developers to specify a placeholder size which would be used for content under size containment which is not yet rendered or ready for display. Currently, with size containment, elements lay out as if they were empty. With size containment and content-size specified, elements lay out as if they had a single child with fixed size (specified by content-size).

The motivation for the property is to provide a placeholder sizing for subtree content which is either not yet available or not rendered. There is currently no way to provide with with size containment, other than sizing the element itself which may not be desirable as it affects how the element lays out in its container.

Documentation

Specification

Editor's draft

Status in Chromium

Blink>Layout


Proposed (tracking bug)

Consensus & Standardization

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

  • No public signals
  • No public signals
  • No public signals
  • No signals

Owners

Last updated on 2019-08-26