Re: [csswg-drafts] Not clamping baseline position when scrollable overflow gives weird results (#7660)

The CSS Working Group just discussed `Not clamping baseline position when scrollable overflow gives weird results`, and agreed to the following:

* `RESOLVED: baselines of a scrollable container should be clamped to the scrollable area`

<details><summary>The full IRC log of that discussion</summary>
&lt;Rossen_> Topic: Not clamping baseline position when scrollable overflow gives weird results<br>
&lt;Rossen_> github: https://github.com/w3c/csswg-drafts/issues/7660<br>
&lt;fremy> fantasai: sorry, inline-flex not inline-block<br>
&lt;fremy> fantasai: the issue is that the text is bigger than the box itself<br>
&lt;fremy> fantasai: so, the reste of the text is aligned to a line that is beyond the box itself<br>
&lt;fremy> fantasai: which doesn't make much sense<br>
&lt;fremy> fantasai: the proposal is to clamp the baseline to the border box<br>
&lt;fremy> Rossen_: do we also do this in the other direction?<br>
&lt;fremy> fantasai: good point, we probably should do it in this direction as well<br>
&lt;fremy> asterns: what is the effect that this would do?<br>
&lt;florian> q+<br>
&lt;fremy> Rossen_: align "text" to the bottom of the scrollable box<br>
&lt;Rossen_> ack florian<br>
&lt;fremy> dbaron: this would be based based on the initial scroll position?<br>
&lt;fremy> fantasai: yes<br>
&lt;fremy> florian: what about overflow: clip?<br>
&lt;fremy> TabAtkins: probably the same?<br>
&lt;fremy> iank_: well<br>
&lt;emilio> q+<br>
&lt;fremy> iank_: probably we don't want that because we resolved that overflow:clip should not have any effect on the layout<br>
&lt;emilio> q-<br>
&lt;fremy> iank_: there is already some margin clipping anyway<br>
&lt;fremy> dbaron: I agree, clip should not apply<br>
&lt;emilio> +1 to dbaron :)<br>
&lt;emeyer> q+<br>
&lt;fremy> emilio: I concur as well<br>
&lt;fremy> TabAtkins: currently, the reverse issue exists<br>
&lt;dbaron> s/clip should not apply/overflow:clip should not do anything different because overflow:clip shouldn't influence layout/<br>
&lt;Rossen_> ack emeyer<br>
&lt;heycam> q+<br>
&lt;fremy> rob: am I correct that the baseline can not be above or beyond the scrollable area?<br>
&lt;fremy> fantasai: yes, correct<br>
&lt;fremy> rob: then, sure, no objection<br>
&lt;fantasai> s/rob/emeyer/<br>
&lt;fantasai> s/rob/emeyer/<br>
&lt;Rossen_> q<br>
&lt;heycam> q-<br>
&lt;fremy> dholbert: the correct rendering would be that the border would align with the text<br>
&lt;fremy> dholbert: but we don't want to do that, right?<br>
&lt;iank_> q+<br>
&lt;fremy> Rossen_: yes, otherwise we would need to take a dependency on the font size etc...<br>
&lt;fremy> Rossen_: so, the proposed resolution is to clamp the baseline<br>
&lt;fremy> Rossen_: any other comment?<br>
&lt;dholbert> clarifying my question: I was asking if the border-top of the scrollable thing would align with the baseline of the text. And the answer was yes, it would<br>
&lt;dholbert> (in the "reverse scenario")<br>
&lt;fremy> iank_: can we keep last-baseline separated from this?<br>
&lt;fantasai> s/keep/keep inline-block/<br>
&lt;fremy> iank_: I don't want to change the margin behavior yet<br>
&lt;Rossen_> ack iank_<br>
&lt;fremy> TabAtkins: I'm fine with this for now<br>
&lt;fremy> Rossen_: any objection?<br>
&lt;fremy> RESOLVED: baselines of a scrollable container should be clamped to the scrollable area<br>
</details>


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 15 September 2022 18:57:55 UTC