Open Loirooriol opened 2 years ago
The CSS Working Group just discussed Is last-remembered size recorded if size containment in single axis?
, and agreed to the following:
RESOLVED: "last remembered size" is tracked for the two axises independently (in case of containment in one axis), and can be invoked independently (with c-i-s:auto in one axis)
To clarify, I think the minutes and the discussion don't quite match the resolution. I believe that we have decided that contain-intrinsic-size auto records last remembered size (both width and height) even if size containment is set in one of the two dimensions. Is my understanding correct?
The resolution seems to imply that we should not record it for one dimension size containment, since that would be the only reason to record the axes separately, but it doesn't explicitly say whether or not to record the dimension that is contained
My understanding is that we decided to only record the one that has contain-intrinsic-size: auto
but not the other.
contain: inline-size
is no longer relevant, and it's not possible to only skip contents in one axis.It's still possible to have contain-intrinsic-size
set to auto
in only one axis, though.
From https://drafts.csswg.org/css-sizing-4/#last-remembered
What if the element has
contain: inline-size
?contain-intrinsic-size
hasauto
in a single axis (#7516).