Re: [csswg-drafts] [css-align] Baseline of a multi-col box?

The CSS Working Group just discussed `baseline of a multicol box`, and agreed to the following resolutions:

* `RESOLVED: first baseline of multicol is first baseline of first col, last baseline synthetized as described above`

<details><summary>The full IRC log of that discussion</summary>
&lt;dbaron> Topic: baseline of a multicol box<br>
&lt;dbaron> github: https://github.com/w3c/csswg-drafts/issues/1572<br>
&lt;fremy> TabAtkins: browsers disagree on what the baselines should be<br>
&lt;fremy> TabAtkins: which is not very visible except in tables for instance<br>
&lt;fremy> TabAtkins: firefox/edge/webkit consider the multicol has no bottom basline, synthetize one<br>
&lt;fremy> TabAtkins: chrome does use the first basline<br>
&lt;fremy> TabAtkins: but our last baseline is the last line of the last column which is weird<br>
&lt;fremy> TabAtkins: the fixed Chrome behavior could be useful<br>
&lt;fremy> TabAtkins: Edge+Firefox could never be useful<br>
&lt;fantasai> testcase: http://output.jsbin.com/cenefep<br>
&lt;fremy> TabAtkins: (the last basline of Chrome is wrong though)<br>
&lt;fremy> TabAtkins: our proposal is to have the spec match Chrome for first baseline<br>
&lt;fremy> TabAtkins: for last baseline, we are ok with synthesizing at the bottom<br>
&lt;fremy> TabAtkins: we could try to find the bottomest baseline of all columns but that is complex and probably not very useful anyway<br>
&lt;fremy> Rossen: why is that useful<br>
&lt;fremy> TabAtkins: see linked test case, it really looks bad<br>
&lt;dbaron> q+<br>
&lt;fremy> fantasai: drawing an example of when this is useful<br>
&lt;Rossen> q?<br>
&lt;fremy> &lt;td>TITLE&lt;/td>&lt;td>[ multi col ]<br>
&lt;Rossen> ack dbaron<br>
&lt;fantasai> fantasai draws a picture where the title is in the left margin of the page, and is baseline-aligned to the first line of its content, which is a multicol element just to the right of it<br>
&lt;astearns> I agree with the first baseline idea, but I don't like the idea of using something that isn't a baseline for last baseline<br>
&lt;astearns> I'd rather take the baseline of the last line in the first column<br>
&lt;fremy> dbaron: i would be very nervous about anything that tries to use highest thing or lowest thing in columns because baselines could affect size which could affect distribution of the columns<br>
&lt;fremy> TabAtkins: first baseline of the first column then<br>
&lt;dbaron> s/distribution/distribution of lines/<br>
&lt;dauwhe> q+<br>
&lt;fremy> Florian: if it's hard and useful, we should still try to do it<br>
&lt;fremy> TabAtkins: i don;t think it usually very useful<br>
&lt;fremy> TabAtkins: and synthetising is close enough<br>
&lt;fremy> fantasai: that is not accurate though<br>
&lt;fremy> TabAtkins: very rarely needed<br>
&lt;Rossen> q?<br>
&lt;fremy> dauwhe: baseline alignment between columns is useful though<br>
&lt;fremy> TabAtkins: this is something completely different<br>
&lt;fremy> TabAtkins: still useful but very different<br>
&lt;dauwhe> ack dauwhe<br>
&lt;Rossen> ack dauwhe<br>
&lt;fantasai> dauwhe gives example of footnotes in last column, last line of footnotes is baseline-aligned to last line of previous column<br>
&lt;TabAtkins> s/first baseline of the first column then/that rules out using last baseline of the first column then/<br>
&lt;fremy> Myles_: line-grid usecase, basically<br>
&lt;fremy> Rossen: proposed resolution: first baseline = first line of first column; for last baseline, synthetize based on bottom margin edge<br>
&lt;fremy> Rossen: we think it is easy to implement<br>
&lt;fremy> Rossen: for last baseline it looks mostly ok to me<br>
&lt;fantasai> I think we need s/margin/box/<br>
&lt;fremy> Rossen: I have seen zero bug about this<br>
&lt;fantasai> because margin vs border varies atm<br>
&lt;fantasai> depending on context<br>
&lt;fremy> alanstearn: they have not even had a chance to try<br>
&lt;fremy> Rossen: we have had multicol + grid for 5+ years<br>
&lt;fremy> Rossen: nobody every asked me this anyway<br>
&lt;fremy> Florian: I might have wanted this but I can leave without<br>
&lt;fremy> Rossen: so, can resolve on proposal?<br>
&lt;Florian> s/leave/live/<br>
&lt;fremy> Rossen: any objection?<br>
&lt;fremy> RESOLVED: first baseline of multicol is first baseline of first col, last baseline synthetized as described above<br>
</details>


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

Received on Wednesday, 2 August 2017 10:27:57 UTC