- From: Theresa O'Connor via GitHub <sysbot+gh@w3.org>
- Date: Fri, 09 Feb 2024 18:26:37 +0000
- To: public-css-archive@w3.org
hober has just created a new issue for https://github.com/w3c/csswg-drafts: == [css2][css-align] `vertical-align: baseline`'s specced behavior when the box doesn't have a baseline isn't great for CJK == CSS2 [defines `vertical-align: baseline`](https://drafts.csswg.org/css2/#valdef-vertical-align-baseline) like so (emphasis mine): <q cite="https://drafts.csswg.org/css2/#valdef-vertical-align-baseline">Align the baseline of the box with the baseline of the parent box. If the box does not have a baseline, align <strong>the bottom margin edge</strong> with the parent’s baseline.</q> This is great if the parent's baseline is the alphabetic baseline. But if we're using a central baseline because the parent's text is CJK, what you really want is to align the box's midline (halfway between the top and bottom margin edges?) with the parent's central baseline. The workaround is to use `vertical-align: middle`, but that doesn't actually do what you want and you have to tweak by hand with margin and padding to get it right, which is very brittle. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9931 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 9 February 2024 18:26:40 UTC