- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 08 Sep 2021 16:47:05 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `Definiteness of min-height: min-content`. <details><summary>The full IRC log of that discussion</summary> <fantasai> topic: Definiteness of min-height: min-content<br> <fantasai> github: https://github.com/w3c/csswg-drafts/issues/6457<br> <fantasai> “The original question still remains: the spec is currently implying that the content-based sizing keywords in the min-* properties don't prevent children from resolving %s against those sizes (even though the width/height properties themselves do). This is necessary behavior for the automatic minimum size (or else percentages would usually be unresolvable), which can be content-based, so it seems like it<br> <fantasai> should be fine to specify that explicitly for all the content-based sizing keywords. But given that these keywords aren't otherwise representing definite sizes, do we actually want to?”<br> <fantasai> TabAtkins: Original question of issue is still open<br> <fantasai> TabAtkins: for reasons of usability, we had to rule that 'min-size: auto' does not prevent percentages on your children from resolving<br> <fantasai> TabAtkins: even though technically the size of parent might be dependent on size of contents<br> <fantasai> TabAtkins: because if not, percentages would hardly ever resolve in flex or grid<br> <fantasai> TabAtkins: But we have also the min-content and max-content keywords<br> <fantasai> TabAtkins: Do we make these also not block percentage resolution on children?<br> <Rossen_> q?<br> <fantasai> TabAtkins: or do we want to hold the line, and have these content-based keywords block percentage resolution<br> <fantasai> TabAtkins: just like they do in the not-min sizing properties (width/height/etc.)<br> <fantasai> TabAtkins: Not necessarily need to resolve now, but wanted to bring up the quesiton<br> <fantasai> iank_: I'd want to discuss with David<br> <fantasai> dholbert: I think given how treated as 'auto' right now, there might be web-compat demand for them to have same definiteness properties.<br> <TabAtkins> fantasai: Given they're "treated as auto" and not commonly used, there's not much incentive for authors to use them right now, especially in a min-size property; feels unlikely that there's compat risk<br> <fantasai> Rossen_: Any concrete use cases?<br> <fantasai> TabAtkins: no, this is a question of consistency<br> <fantasai> TabAtkins: what kind of divergence do we want here<br> <fantasai> TabAtkins: we need an answer for the spec, but having use cases<br> <fantasai> dholbert: for non-definite case<br> <fantasai> dholbert: consider a deeply-nested flexbox case<br> <fantasai> dholbert: want content-based minimum<br> <fantasai> dholbert: but don't want perf complications<br> <fantasai> dholbert: so switch from auto to min-content<br> <fantasai> dholbert: That said, browser could also maybe detect the lack of percentages inside the element<br> <fantasai> dholbert: and not run the second layout pass<br> <fantasai> dholbert: Can't think of another justification for not being definite<br> <fantasai> jfkthame: agree<br> <fantasai> Rossen_: ...<br> <fantasai> Rossen_: I think the perf problem stated here is more of a speculation<br> <fantasai> Rossen_: less a concrete concern<br> <fantasai> Rossen_: my preference would be to keep it consistent<br> <fantasai> fantasai: consistency works both ways<br> <Rossen_> s/.../The deeply nested elements can be made context aware and resolve % only in the cases of having both % and min-content/<br> <fantasai> fantasai: these keywords in 'height' cause it to be indefinite<br> <fantasai> fantasai: so do we want to be consistent with that? or with 'min-height: auto'?<br> <fantasai> Rossen_: where do we go from here?<br> <fantasai> fantasai: Tab and I are happy for people to think about it. We just wanted to bring it up and explain on the cal.<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6457#issuecomment-915400325 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 8 September 2021 16:47:08 UTC