Re: [csswg-drafts] [css-multicol] Spanning elements late in the content, treated as column-span: none

The Working Group just discussed `Spanning elements late in the content, treated as column-span: none`, and agreed to the following resolutions:

* `RESOLVED: No change to L1 refiled against L2 to think about in context of n-spanners`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: Spanning elements late in the content, treated as column-span: none<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/2448<br>
&lt;astearns> s/commented/commented that they can open an issue on level 2<br>
&lt;dael> rachelandrew: You've got a spanner that's late enough that there isn't space to span. UA may treat it as if non has been set. I raised this as an issue against chrome. FF doesn't span yet. THere's an example code pen in the issue from the spec.<br>
&lt;dael> rachelandrew: Chrome's behavior isn't particularly useful.<br>
&lt;dael> rachelandrew: There wasn't interest in impl the issue and they thought authors should refain from this. Is it useful to have in the spec?<br>
&lt;dael> florian: Chrome behavior is terrible so we shouldn't allow that.<br>
&lt;dael> rachelandrew: Yes, but their point was they didn't think this was usefult o have in the spec.<br>
&lt;dael> florian: If we have a good behavior it's worth a may in the spec. Is there an alternative to the may?<br>
&lt;dael> fantasai: No.<br>
&lt;dael> rachelandrew: What will you do with them?<br>
&lt;fantasai> s/No/Can't think of anything/<br>
&lt;dael> dbaron: This is column spanning lements in a multi col with a fixed height?<br>
&lt;dael> florian: Yeah.<br>
&lt;dael> dbaron: Model of column spanning elements if you split the multi col into multiple mulcticol and you can only apply the fixed height on the last. So you get to it and you've gone past the max height and what should you have done earlier to make it fit?<br>
&lt;dael> fantasai: I gues alternative is overflow downwards instead of creating more columns.<br>
&lt;dael> dbaron: Normally multicol with fixed heigh make more columns but you can't do that here unless you go back.<br>
&lt;dael> florian: Overflow toe xtra columns and span that?<br>
&lt;dael> fantasai: Don't know number of columns.<br>
&lt;dael> fantasai: [whiteboards] when you make a spanner it breaks into multiple sets of spanner columns.<br>
&lt;dael> fantasai: [draws a row with 3 small boxes and then a row with one long box and then seveal other rows] when you have one set of columns and run out of space it generates more columns. You spanner goes down. [draws a row with 5 columns/boxes] you overflow here and make more columns. It's not awesome but it's another possibility of what you can do.<br>
&lt;dael> Rossen: I see how you draw that but introducing breaks in columns is nuts.<br>
&lt;dael> florian: You have the spanner and the contents before you basically end up in a 2 pass thing.<br>
&lt;dael> dbaron: I could make a no-more multipass suggestion which is that if you have a multi-col with col-spans you never overflow by making more columns. Instead any sets of columns before a column span are auto height. THat's always true. You fill the height you need. Then you have to fill the height you need.<br>
&lt;dael> dbaron: Basically you ignore the height when you're generating sets of columns before the span and then you ignore when generating the span itself. Then you get to the last set of columns and you honor the height if it means making it taller. If it makes it shorter you do auto-height again. It's all overflow going down.<br>
&lt;dael> florian: I think okay.<br>
&lt;dael> dbaron: Only thing you'd do to honor the height is make the last set of columns taller to fix. Pretty different from waht multicol does otherwise, but seems not completely crazy.<br>
&lt;dael> florian: Are you suggesting you keep the may and allow either what's in the spec or this or just this?<br>
&lt;dael> dbaron: I'd like to spec one behavior. We can try and spec something sane for the other. BUt if you start to allow column spans in some cases you get a bottom column that's shorter and shorter.<br>
&lt;dael> florian: And then all the sudden it pops out of the spanner<br>
&lt;dael> fantasai: So dbaron your method is a mode switch depending on if you contain spans?<br>
&lt;dael> dbaron: You should know if you have spans up front.<br>
&lt;dael> florian: Depends on if it spans the entire multicol or the current fragment of the multicol. If it's the second you still have to do layout.<br>
&lt;dael> dbaron: I feel like fragments in the multicol aren't that different from [missed]<br>
&lt;dael> florian: That's true.  If you're in a non-fragmented multicol you trigger on presense of spanners and if you're in fragmented multicol you always do this and only place you have to start worrying is the last one.<br>
&lt;dael> fantasai: Seems to me we should make the behavior undefined.<br>
&lt;dael> rachelandrew: That results in...well...<br>
&lt;dael> florian: Chrome does something bad.<br>
&lt;dael> astearns: What we have isn't what Chrome does<br>
&lt;dael> fantasai: They're filling hte content then there's a spanner and it has to go below.<br>
&lt;dael> florian: You don't layout your columns and then find out there's a spanner, you find out firs there's a spanner.<br>
&lt;dael> Rossen: Also when we want to have variable column count spanners it becomes hokey. Triggering breaks and switching overflow in what direction. Multicol is simple and elegent in what it does Overflow columns are always in one direction and spans always span the columns. You're not really creating rows and trying to use those rows...<br>
&lt;dael> fantasai: I think if you have a spanner you don't want column rules underneath. Conspectually you have rows of column boxes. Going forward we should not have a model of column boxes trough the spanners.<br>
&lt;dael> rachelandrew: I think that's right.<br>
&lt;dael> rachelandrew: Do we want to try and resolve or to go away and think?<br>
&lt;dael> Rossen: L1 or L2?<br>
&lt;dael> rachelandrew: The may is in L1. Edge does spec behavior.<br>
&lt;dael> Rossen: And chrome has a bug they can fix<br>
&lt;dael> florian: BUg allowed by spec.<br>
&lt;dael> rachelandrew: If this is what we want we should remove the may.<br>
&lt;dael> florian: And if we want to do the thing dbaron suggests it shouldn't do one or the other. Author should choose.<br>
&lt;dael> fantasai: What bother's me about dbaron  model is for all content befor ethe spanner I add content, get one behavior and as soon as there's a spanner i get different behavior and that's weird. What if you want the other behavior anyways? Empty spanner?<br>
&lt;dael> dbaron: If you want continuity you should get that going from end of multicol not start. If you want hte thing with the spanner to be the same as without one way is to try and make it so the bit after the last spanner behaves same as no spanners.<br>
&lt;dael> dbaron: Still ahrd.<br>
&lt;rego> this example looks bad in Chromium: https://codepen.io/mrego/pen/GxLQJm<br>
&lt;dael> florian: If you try for that you're past max height so you have no space left and an infiniate number of 0 height columns.<br>
&lt;dael> dbaron: I'm thinking that way because balancing for the bit after the last span is the thing that honors things like column fill.<br>
&lt;dael> fantasai: Right. I still think it's...if you as an author wanted that I'll stil a 0 height spanner at the bottom. I don't think that's great. Interesting way for a mode switch.<br>
&lt;dael> florian: If you don't set a height we don't have the problem in the first place.<br>
&lt;dael> florian: If you combine that with Rossen comment that eventually we want to span n columns instead of all<br>
&lt;dael> Rossen: That's been a request since we into multi col<br>
&lt;dael> Rossen: Let's try and move forward. There's more work to be done if we want to move forward with this. And it's in L2. Let's resolve on L1.<br>
&lt;dael> Rossen: Choices 1) continue with the may 2) change to an undefined 3) may changes to must<br>
&lt;dael> florian: 3.<br>
&lt;dael> Rossen: And we'll add continuation in L2<br>
&lt;dbaron> I think one of the prior mistakes here was probably allowing column-spanning elements anywhere within a multicol rather than just at the start...many things would have been simpler if they could only be at the start.<br>
&lt;dael> fantasai: I vote 1 or 2 because as we try to figure out how n column spanners work we may have a better idea of how this should work.<br>
&lt;dael> florian: Which allows chrome to fix themselves.<br>
&lt;dael> astearns: But you shouldn't expect that to happen.<br>
&lt;dael> fantasai: I think that rethinking this once there's a model for n spanners it'll give us a way forward. Rather then prematurely desciding this case.<br>
&lt;dael> Rossen: Would chrome people have a problem with this as a must?<br>
&lt;dael> eae: It's very hard for us to implement that behavior. We know current isn't great.<br>
&lt;dael> Rossen: Outside of test cases I haven't see compat problems.<br>
&lt;dael> rachelandrew: It's edge casey.<br>
&lt;dael> Rossen: I propose we stay with the may for L1. If give Chrome the ability to continue but validates the other model Edge uses. In L2 we think more.<br>
&lt;dael> rachelandrew: I'll raise this against L2.<br>
&lt;dael> fantasai: And I'd mark rediscussed after we figure out n columns<br>
&lt;dael> florian: Well, while we do n columns.<br>
&lt;dael> Rossen: Do we need resolution?<br>
&lt;dael> fantasai: Prop: No change to L1 refiled against L2 to think about in context of n-spanners<br>
&lt;dael> Rossen: Opinions or Objections?<br>
&lt;dael> RESOLVED: No change to L1 refiled against L2 to think about in context of n-spanners<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2448#issuecomment-380740480 using your GitHub account

Received on Thursday, 12 April 2018 09:34:27 UTC