Re: [csswg-drafts] [css-align-3] Baselines need to be defined on fieldsets. (#7656)

The CSS Working Group just discussed `[css-align-3] Baselines need to be defined on fieldsets.`, and agreed to the following:

* `RESOLVED: default first and last baselines to be the fieldset content's`

<details><summary>The full IRC log of that discussion</summary>
&lt;astearns> topic: [css-align-3] Baselines need to be defined on fieldsets.<br>
&lt;astearns> github: https://github.com/w3c/csswg-drafts/issues/7656<br>
&lt;emilio> ScribeNick: emilio<br>
&lt;emilio> iank_: fieldsets need their baseline defined<br>
&lt;emilio> ... they're special, have a &lt;legend> on the border area<br>
&lt;emilio> ... and their contents are wrap in a box with arbitrary display type<br>
&lt;iank_> https://www.software.hixie.ch/utilities/js/live-dom-viewer/?saved=10714<br>
&lt;emilio> iank_: implementations do wild things<br>
&lt;emilio> ... dgrogan has screenshots of what browsers do today<br>
&lt;emilio> ... my preference is to ignore the legend<br>
&lt;emilio> ... that's Chromium's behavior<br>
&lt;emilio> fantasai: I'd like to argue for Safari's behavior<br>
&lt;emilio> ... first baseline from legend, last from content<br>
&lt;emilio> Rossen_: why is that more sensible?<br>
&lt;emilio> fantasai: legend is the first bit of text that you see<br>
&lt;emilio> ... seems reasonable to align to it<br>
&lt;emilio> ... that should def. work<br>
&lt;fremy> +1 for aligning fieldsets with each other based on the legend<br>
&lt;emilio> ... not sure what the last baseline to be, but taking the last baseline of the content of the fieldset makes sense to me<br>
&lt;emilio> iank_: I think I disagree, &lt;legend> is like table captions<br>
&lt;emilio> ... they have smaller font-size, they're not the main content of the fieldset<br>
&lt;emilio> ... first baseline should be actual content, that makes more sense to me<br>
&lt;emilio> fantasai: would be great if web designers would weigh in on this<br>
&lt;emilio> Rossen_: one potential use case might be aligning multiple fieldsets<br>
&lt;emilio> iank_: aligning to non-fieldset content is more common I think<br>
&lt;emilio> dbaron: I think I lean towards agreeing with iank_<br>
&lt;Rossen_> ack dbaron<br>
&lt;emilio> ... not that uncommon for fieldsets to lack a &lt;legend><br>
&lt;miriam> +1 Ian and David<br>
&lt;emilio> ... if we wanted to align to legend we'd need to define  what happens when there's no legend<br>
&lt;emilio> +1<br>
&lt;tantek> +1<br>
&lt;heycam> q+<br>
&lt;emilio> ... my sense is that it's common not to have one<br>
&lt;Rossen_> ack heycam<br>
&lt;emilio> iank_: if you're aligning fieldsets with and without legends it'd be weird<br>
&lt;emilio> heycam: agree with iank_ as well, legend is ancillary content like captions<br>
&lt;emilio> ... fieldset legend could also have multiple lines of text as well<br>
&lt;emeyer> q+<br>
&lt;Rossen_> ack emeyer<br>
&lt;emilio> emeyer: I'm looking at live dom viewer on irc<br>
&lt;emilio> ... I accept the argument that aligning to the legend is a bit dangerous<br>
&lt;emilio> ... I have the feeling that many fieldsets don't have legend<br>
&lt;emilio> ... but I do see situations for all three kinds of alignment. legend/first/last content<br>
&lt;emilio> ... if I had to pick one I'd choose first line of contents<br>
&lt;emilio> ... but I see use cases for the others<br>
&lt;emilio> ... there's cases where I might want to align to others<br>
&lt;emilio> ... I think both patterns would be common<br>
&lt;emilio> fantasai: when you want first line to align, is there case where the legends don't align?<br>
&lt;emilio> q+<br>
&lt;zcorpan> q+<br>
&lt;emilio> emeyer: I can't think of a reason, I'd want the legends to align with each other<br>
&lt;emilio> ... sometimes I want text outside to align with the legend<br>
&lt;emilio> iank_: if you want to align legends using top-alignment would work unless there's non-fieldset content<br>
&lt;emilio> emeyer: I probably would want the text outside to align with the first line of content rather than the legend<br>
&lt;emilio> iank_: we could also add a switch to allow you to align to a legend if that use case comes up<br>
&lt;emilio> fantasai: there's an issue to allow choosing baseline alignment box<br>
&lt;fantasai> https://github.com/w3c/csswg-drafts/issues/1339<br>
&lt;heycam> emilio: I was going to say something related what Ian said. we could add a switch but I'd also like to ignore the legend<br>
&lt;Rossen_> ack emilio<br>
&lt;heycam> ... if the use case for aligning to a legend comes up often, where you're aligning text outside the fieldset with the legend of the fieldset, which seems odd, we could look to allow that<br>
&lt;heycam> ... but seems farfetched<br>
&lt;heycam> ... for most cases top alignment should do<br>
&lt;Rossen_> ack zcorpan<br>
&lt;emilio> zcorpan: we discussed whether there's a case where legends wouldn't be align<br>
&lt;emilio> ... if you have a fieldset with one line of text and another when the legend is 2+ lines of text<br>
&lt;emilio> ... those wouldn't be necessarily align<br>
&lt;emilio> ... depending on what we decide<br>
&lt;emilio> ... maybe I misunderstood<br>
&lt;astearns> no, I had the same idea<br>
&lt;emilio> iank_: that's a similar problem if you try to align a fieldset with a legend and one without<br>
&lt;emilio> Rossen_: it sounds the obvious use case is that the first baseline of content needs to be available<br>
&lt;emilio> ... we need to resolve to have first-line baseline based on the content<br>
&lt;emilio> ... be available. The second question is whether we need to make the legend baseline available<br>
&lt;heycam> emilio: I would propose to try resolving the default be the baseline of the content<br>
&lt;heycam> ... if there are use cases that can't be solved without the baseline of the legend, work on what fantasai was talking about, choosing the baseline box<br>
&lt;emilio> Rossen_: seems to agree with the majority of the +1s and arguments made<br>
&lt;zcorpan> +1<br>
&lt;emilio> Rossen_: fantasai, objections?<br>
&lt;emilio> fantasai: defer to emeyer and jensimmons<br>
&lt;emilio> s/fantasai, //<br>
&lt;emilio> emeyer: the proposed resolution is to default to first or last baseline of the content?<br>
&lt;emilio> emilio: both baselines first and last would be baseline of the content box<br>
&lt;emilio> emeyer: feels probably correct, I'll take al look at various cases to confirm it's not a bad idea, but seems like the best resolution<br>
&lt;emilio> RESOLVED: default first and last baselines to be the fieldset content's<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7656#issuecomment-1248617134 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 20:52:06 UTC