- From: Simon Pieters via GitHub <sysbot+gh@w3.org>
- Date: Thu, 15 Sep 2022 19:48:22 +0000
- To: public-css-archive@w3.org
The difference between the top box and the bottom box is the markup, "`line1<br>line2`" is before vs after the `legend` element, and also the bottom box has `align-items: baseline;`. I'm not sure if the first difference is intentional, or if you only wanted to test the effect of `align-items: baseline;`? Per https://html.spec.whatwg.org/multipage/rendering.html#rendered-legend the placement of the `legend` element shouldn't make any difference; the "rendered legend" is the first child `legend` element (that's not floating and not `position: absolute` or `fixed`), and HTML [says](https://html.spec.whatwg.org/multipage/rendering.html#the-fieldset-and-legend-elements) > If the element has a [rendered legend](https://html.spec.whatwg.org/multipage/rendering.html#rendered-legend), then that element is expected to be the first child box. As for what which baseline to use, I think there are 3 options: 1. Use the "rendered legend" 2. Use the "anonymous fieldset content box" 3. Use both I think option (2) seems most useful, which I believe is what Chromium does. -- GitHub Notification of comment by zcorpan Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7656#issuecomment-1248539088 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 19:48:24 UTC