(In reply to Mats Palmgren (:mats) from comment #1) > > (There might be other things that make an element "establish an independent > > formatting context" that we need to consider for subgrid-disabling, too...? > > not sure) > > Not participating the item baseline alignment group perhaps? [...] > Or behave as overflow:hidden when calculating its baseline? I suspect this behavior would be triggered by "contain:size", *not* by "contain:layout". (contain:size says to perform layout as if there were no contents, from the perspective of the surrounding content -- so that's what would disable useful baseline alignment.) (In reply to Morgan Reschenberg [:morgan] from comment #3) > (In reply to Daniel Holbert [:dholbert] from comment #0) > > contain:layout and contain:size are specced as making an element > > "[establish] an independent formatting context" > > https://drafts.csswg.org/css-contain/#containment-layout > > https://drafts.csswg.org/css-contain/#containment-paint > > To clarify: this applies to contain:layout and contain:paint, right? (not > contain:size) Correct -- sorry, I mistyped there.
Bug 1471758 Comment 4 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
(In reply to Mats Palmgren (:mats) from comment #1) > > (There might be other things that make an element "establish an independent > > formatting context" that we need to consider for subgrid-disabling, too...? > > not sure) > > Not participating the item baseline alignment group perhaps? [...] > Or behave as overflow:hidden when calculating its baseline? I suspect this behavior would be triggered by "contain:size", *not* by "contain:layout". [EDIT: The spec has now changed on this so that `contain:layout` is now the thing that suppresses baselines from leaking out, as Florian notes below] (In reply to Morgan Reschenberg [:morgan] from comment #3) > (In reply to Daniel Holbert [:dholbert] from comment #0) > > contain:layout and contain:size are specced as making an element > > "[establish] an independent formatting context" > > https://drafts.csswg.org/css-contain/#containment-layout > > https://drafts.csswg.org/css-contain/#containment-paint > > To clarify: this applies to contain:layout and contain:paint, right? (not > contain:size) Correct -- sorry, I mistyped there.
(In reply to Mats Palmgren (:mats) from comment #1) > > (There might be other things that make an element "establish an independent > > formatting context" that we need to consider for subgrid-disabling, too...? > > not sure) > > Not participating the item baseline alignment group perhaps? [...] > Or behave as overflow:hidden when calculating its baseline? I suspect this behavior would be triggered by "contain:size", *not* by "contain:layout". [EDIT: The spec has now changed on this so that `contain:layout` is now the thing that suppresses baselines from leaking out, as Florian notes below]