[css-sizing] clarification around Compressible Replaced Elements and min-content size · Issue #5665 · w3c/csswg-drafts (original) (raw)

5.2.2 Compressible Replaced Elements applies to 5.2 Intrinsic Contributions. Does it also apply to 5.1 Intrinsic Sizes?

The answer affects the size of <input> below because the flexbox will respect the min-content size of the <input> element when shrinking.

https://jsfiddle.net/pfv2x6sd/1/

Indications that 5.2.2 applies to 5.1:

Indications 5.2.2 does not apply to 5.1:

Chrome behaves as if 5.2.2 applies to 5.1. Firefox behaves as if it does not apply. (In an unlikely scenario, the implementors of the respective engines think the other engine is right.)

Can we get this part of the spec clarified so we know how to size the <input> element in the above example? One suggestion from the chrome bug is

  1. Replace "compressible" with a clearer term
  2. Make sure the two places match about whether this affects min-content size or contribution

The firefox bug is at https://bugzilla.mozilla.org/show_bug.cgi?id=1585485

/cc @dholbert @cbiesinger who I've been discussing this with