W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2018

Re: [csswg-drafts] [css-display] Blockifications should establish BFC in block containers

From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
Date: Wed, 18 Jul 2018 16:37:23 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-405996123-1531931842-sysbot+gh@w3.org>
The Working Group just discussed `Blockifications should establish BFC in block containers`, and agreed to the following:

* `RESOLVED: keep blockficiation and establishing FC are independent`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: Blockifications should establish BFC in block containers<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/2673<br>
&lt;rego> it seems oriol is not listening, despite he's on webex :(<br>
&lt;dael> TabAtkins: Oriol has been asking for if blockification should auto establish btc rather then occiationally explicit. fantasai and I disagreeing because they don't happen every time<br>
&lt;rego> so he should participate here on IRC I guess<br>
&lt;dael> TabAtkins: If anyone disagrees and things blockification should auto be a BFC, great let's talk. If not looking for resolution of support<br>
&lt;dael> Rossen_: You saying tha tblicification doen'st force BFC?<br>
&lt;Oriol> I have problems with the cisco program but I'm in IRC<br>
&lt;dael> TabAtkins: Not intrinisically.<br>
&lt;dael> Rossen_: Example?<br>
&lt;dael> TabAtkins: Have to look<br>
&lt;dael> TabAtkins: Any time we blockify and inline block does not cause it to become a FC it just goes to block<br>
&lt;dael> fantasai: That's true in that it does not change hte display computation. THat's required by backwards compat.<br>
&lt;dael> fantasai: We could change to not change display and also make it a formatting context. We do that for lfoat abspos and others<br>
&lt;dael> fantasai: Right now when we do blockification in cases where new element will establish new FC anyway. If we apply blickificaiton in flow blocks I don't think we'd want new FC. Grid items currently blockify and a subgrid isn't a new FC<br>
&lt;dael> Rossen_: does subgrid blockify?<br>
&lt;dbaron> q+ to comment on flow-root point from the issue<br>
&lt;dael> fantasai: If we did we'd need an exception. It has to blockify because if it's an inline grid it becomes not an inline. When it's a grid item...if you have an item inside a grid that element is blockified. Blockification if it says display inline it becomes block. inline-table become block, inline-grid becomes block. But a subgrid isn't a new FC because it intertwinces with grid outside. Can't say it's a new FC, but it is blockified<br>
&lt;dael> fantasai: I don't htink we can tie these two concepts together. block makes it a block. They almost always coincide but I don't think the concepts are intrinisicaly bound and shouldn't be tied in spec<br>
&lt;dael> florian: Exception of subgrid this is an editorialtwist as to if you describe separately or together. So it's editorial.<br>
&lt;Oriol> But I think a BFC is desired if you have `display: inline flow-root`. CSS DIsplay says it becomes `flock flow`, and a future feature might blockify without forcing BFC. Then the flow-rootness will be lost<br>
&lt;astearns> ack dbaron<br>
&lt;Zakim> dbaron, you wanted to comment on flow-root point from the issue<br>
&lt;dael> dbaron: I think one other point in the issue from Oriol . I think Oriol trying to put in IRC too<br>
&lt;dael> dbaron: Current blockification remove flow-root nature. If blockification always makes things FC it's fine. If it doesn't then maybe blockification rules need to be fixed so if you say flow-root you don't lose that<br>
&lt;dael> fantasai: So far cases where lose flow-root is converting inline flow-root or a run-in flow-root. In case of inline block we can't change how display is computed due to backwards compat.<br>
&lt;dael> fantasai: Every other casing where flow-root is blockified it establishes a new FC anyway.<br>
&lt;dael> fantasai: We're flowing it, we're abspos it, putting it in a grid or flexbox. These are cases where element that is a block container it establishes a new FC<br>
&lt;dael> dbaron: So in subgrid it's not possible to be a new FC?<br>
&lt;dael> fantasai: Matter of termonology, but fundimental idea of a new FC is there's no intertwining between new and old FC. If there's info passed through the bounderies when you do something like whitespace collaposing it's porous. Same is true for display:block, margins collapse through boundary. The contents inside and outside participate<br>
&lt;dael> fantasai: New FC creates a barrier without that bleedthrough. THe justificaiton and alignment doesn't pass through the inline block boundary. Same as a block element with new FC.<br>
&lt;dael> fantasai: For a grid, if you nest a grid inside a grid same thing applies. No interactions between grid tracks inside a nested grid. Subgrid you do have negotiaion between inner subgrid context and outer parents and siblings. THey participate together in sizing algo<br>
&lt;dael> fantasai: The size declarations and names of lines on parent pass to subgrid. There is fundamental bleeding through of the content and the layout calc. To say it's a new FC doesn't make sense.<br>
&lt;dael> dbaron: Makes sense to me. Some point earlier I thought you said that...something about how these were still block formatitng context.<br>
&lt;dael> fantasai: Grid items are considered grid level, not block. They participate in grid FC. But there is blockificaiton process that changes display values to make them block-like. We convert anything with a non-block outer display to a block<br>
&lt;dael> dbaron: And one can be a subgrid?<br>
&lt;dbaron> s/one/one of the blockified things/<br>
&lt;dael> fantasai:You run blockificaiton on every grid item. You run it through blockification IMight be a no-op, but you run through.<br>
&lt;dael> fantasai: Was we decided to do subgrid with a new type the display-type of a subgrid needs to be declared. If you say grid or inline grid doesn't really matter.<br>
&lt;dael> fantasai: Blockificaiton process turns inline on subgrid to grid.<br>
&lt;dael> dbaron: I worried you said display block could be subgrid<br>
&lt;dael> fantasai: No, you can't<br>
&lt;dael> florian: Blockification is really dis-inline-ification<br>
&lt;dael> fantasai: In a sense. WE have outer display type which says how your behavior is when in flow layout. Outside of flow layout distinction between inline and block has no meaning and is ignored. Each display value corresponds to a state.<br>
&lt;dael> fantasai: If I take subgrid and put it in a bfc it will not behave as subgrid, but it'll be the fallback behavior.<br>
&lt;TabAtkins> Core point tho: grid items are blockified, subgrids are grid items (by definition) but aren't FCs (by definition), so blockification *cannot* imply FCification in general.<br>
&lt;dael> fantasai: weither declared inline or block grid it'll make a difference in partiipation once in block container<br>
&lt;dael> astearns: Back to original issue: We have a choice of keeping things as we are where blockification and formatting context are discussed sep. Or we changes that blockification implies a FC but it can be overwritten in places like subgrid<br>
&lt;dael> astearns: Argument that 2 things are sep is compelling to me because having both explicit sounds easier to comprehend. I like that it's explicit<br>
&lt;Rossen_> q+<br>
&lt;florian> since this makes no behavior difference, this is editorial, and I like to leave it up to the editors to describe it the way they want. That helps the whole prose be coherent<br>
&lt;dael> astearns: Argument to tie together is that there may be situations in the future where we might forget about forcing FC in blockificaiton case where we need it to happen. Benefit for the explicit call outweighs danger of forgetting to make that call in the future.<br>
&lt;astearns> ack dbaron<br>
&lt;AmeliaBR> Is there any consequence of blockification that *is* necessary for subgrid? Or can it just be that "grid-items are blockified (and create a formatting context), *except* for those with `display: subgrid`"?<br>
&lt;fantasai> AmeliaBR, inline-grid needs to be converted to grid<br>
&lt;fantasai> ('display' value)<br>
&lt;dael> dbaron: blockficiation without FCification doesn't work in a block context. IN grid it's fine, but in block context it removes the things that are supposed to be FC> I think that's a piece Oriol doesn't like. Maybe it's that we never will use and so it's okay. Might be worth noting.<br>
&lt;astearns> ack Rossen_<br>
&lt;dael> astearns: Make sense to call that out in all current cases you need the 2 in a block context<br>
&lt;Oriol> Yes, the problem is with flow layout<br>
&lt;dael> Rossen_: fwiw, from impl experience we've had this model inside our engine since IE9. During style computation we independently decide inner layout type, outside layout placement (where you will be placed), and 2 aux ones, what is your placement and what is your layout type and that's if you're a BFC<br>
&lt;dael> Rossen_: What I can tell you is they're all independent. But I don't see why we should unless from inline block PoV we have to.<br>
&lt;dael> fantasai: address point from Oriol and dbaron where if you happen to use blockification for block level items question...example is an inline block when blockifies turns into display:block which is pourous. Argument is inline:block should be a Block flow-root and a new FC. Not convinced of that being the expectation.<br>
&lt;dael> fantasai: I think that's part of why it's not in CSS 2.1...distinction between block, block layout, and bfc is not huge. inline block vs a block do form a pair.<br>
&lt;Rossen_> s/what is your placement and what is your layout type and that's if you're a BFC/based on the layout placement and type we compute if you're a BFC and if you require a stacking context/<br>
&lt;Oriol> I think it may be OK if inline-block doesn't become a flow-root, but if you esplicitly specify flow-root, you shouldn't lose it<br>
&lt;dael> fantasai: formatting context establishment is a side effect because they just want this as a block to be a FC, not something they specificially needed.<br>
&lt;dael> fantasai: I'm not sure what you would expect, but becming display:block isn't nec unexpected. If you said inline flow-root it's clear you wanted that but we're getting into fiddly cases and we decided inline-block and flow-root are identical<br>
&lt;astearns> ack dbaron<br>
&lt;dael> dbaron: I think this is a negative side effect of that. Prob fine ofr inline-block, but wierd if flow-root.<br>
&lt;dael> dbaron: I think I'm okay just concluding here<br>
&lt;dael> astearns: And close no change dbaron ?<br>
&lt;dael> dbaron: I think no change and a note pointing out that there is this where if you do blockification without FC and people used flow-root explicitly<br>
&lt;dael> astearns: Need to ask Oriol if he's okay closing with a note.<br>
&lt;dbaron> s/there is this where/it isn't great if/<br>
&lt;Oriol> OK, but note that if a future fewature allows blockification without BFC, then it will be more difficult to change<br>
&lt;dael> astearns: And would anyone else obj to resolve no change except adding a note<br>
&lt;dael> fantasai: 3 ways forward, to be clear.<br>
&lt;dael> fantasai: 1) close no change FC and blockificiation are independant<br>
&lt;dael> fantasai: 2) Blockificiation implies FCificiation so inline block convers to block flow root and we will need an exception for subgrid<br>
&lt;dael> fantasai: 3) revert resolution where we said inline block and inline flow are identicatal and say they're independant and have same behavior except if you blockify.<br>
&lt;dael> fantasai: THat lets you when you blockify inline flow-root it becomes display: flow-root<br>
&lt;dbaron> I'd be fine with (3) based on this discussion but I don't know why we made that resolution to begin with.<br>
&lt;dael> astearns: We're 30 on this issue. My preference would be close no change and raise a new issue on inline block and inline flow-root<br>
&lt;dael> fantasai: We had an issue and resolved on the current. Only reason to re-open is if people want option 3 which gets you independfence for blockificiation and FCification but also clarifies the inline flow-root.<br>
&lt;dael> astearns: Reopening that with this in mind makes sense and doesn't change how we'd resolve here.<br>
&lt;dael> fantasai: fair enough<br>
&lt;dael> astearns: I'd like to close this.<br>
&lt;dael> astearns: Let's resolve that blockficiation and establishing FC are independent and we will add a note on the flow-root issue which can become a github issue to change our previous decision<br>
&lt;dael> fantasai: This is last open issue before CR so we need to open the issue or go to CR<br>
&lt;Oriol> Works for me<br>
&lt;dael> astearns: obj to keep blockficiation and establishing FC are independent<br>
&lt;dael> RESOLVED: keep blockficiation and establishing FC are independent<br>
&lt;dael> astearns: Anyone think we should take up an issue about inline block and inline flow-root?<br>
&lt;dael> florian: Rathe rnot<br>
&lt;dael> dbaron: Don't know context of original decision so hard to know<br>
&lt;dael> astearns: Let's leave at that this week. those in the discussion please decide if open new issue.<br>
&lt;dael> Rossen_: Should we resolve on to CR?<br>
&lt;dael> astearns: Let's give another week and go to CR next week.<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2673#issuecomment-405996123 using your GitHub account
Received on Wednesday, 18 July 2018 16:37:30 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:26:51 UTC