[css2][css-align] vertical-align: baseline
's specced behavior when the box doesn't have a baseline isn't great for CJK
#9931
Labels
Commenter Response Pending
CSS2
css-align-3
Current Work
i18n-tracker
Group bringing to attention of Internationalization, or tracked by i18n but not needing response.
CSS2 defines
vertical-align: baseline
like so (emphasis mine):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.See also #7578 and #9520.
The text was updated successfully, but these errors were encountered: