Summary
Support for the "auto" keyword in contain-intrinsic-size lets web
sites use the last remembered size of an element (if any), which
providers for a better user experience as elements have size
containment turned on and off, e.g. through content-visibility: auto.
Blink component
Blink>Layout
Motivation
Without this feature, web developers have to guess at the rendered
size of the element; when used with content-visibility: auto, this may
lead to elements "jumping around".
Initial public proposal
None
Search tags
contain-intrinsic-size, contain intrinsic size, auto
Interoperability and Compatibility
No compat risk; all existing CSS will continue to work unchanged.
Interop risk: if web developers only use the new syntax, then content
will be sized as 0x0. They can use the usual CSS fallback syntax to
avoid this, like:
contain-intrinsic-size: 100px 100px;
contain-intrinsic-size: auto 100px auto 100px;
Ergonomics
Possible risk is that this requires using resize observer internally
to get the last rendered size. We think this will not be an issue in
practice.
Activation
Very easy; easier than the existing contain-intrinsic-size (which is the point)
Security
n/a
Debuggability
Same as any other CSS property.
Is this feature fully tested by web-platform-tests?
No
I will write WPT tests as part of the implementation