You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css-display] Blockifications should establish a new formatting context #2598
Then, other specifications that require blockifications (like flexbox or grid) wouldn't need to explicitly require a new formatting context, because it would already be implied.
Additionally, a flow-root inner display type becomes flow when blockified. Then someone could think that the element stops being a BFC root. Explicitly saying that this is not the case (because the element establishes a new formatting context) would clear up the confusion.
Nope, grid items get blockified, but subgrids do not establish a new FC.
It's definitely usually the case (and could probably use a note in the spec that you can generally expect it), but it's not fundamental to blockification.
(The Grid 2 spec doesn't explicitly specify that subgrids don't form a new FC yet, but that's definitely what happens - their layouts intertwine with their parent, which is the definition of "not a new formatting context". We'll fix this in Grid 2 in a bit.)
Activity
tabatkins commentedon May 7, 2018
Nope, grid items get blockified, but subgrids do not establish a new FC.
It's definitely usually the case (and could probably use a note in the spec that you can generally expect it), but it's not fundamental to blockification.
tabatkins commentedon May 7, 2018
(The Grid 2 spec doesn't explicitly specify that subgrids don't form a new FC yet, but that's definitely what happens - their layouts intertwine with their parent, which is the definition of "not a new formatting context". We'll fix this in Grid 2 in a bit.)
Loirooriol commentedon May 7, 2018
OK, I didn't think about subgrids, https://drafts.csswg.org/css-display-3/#valdef-display-grid will also need to be updated.
Loirooriol commentedon May 9, 2018
@tabatkins Then, I think the spec should say this: