[csswg-drafts] [css-inline-3] text-align + initial-letter (#5207)

fantasai has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-inline-3] text-align + initial-letter ==
This is a follow-up to https://github.com/w3c/csswg-drafts/issues/884 ([minutes](https://lists.w3.org/Archives/Public/www-style/2018Jul/0019.html).

We resolved that raised caps (sink=1) are treated as part of the text of the originating line for the purposes of alignment and justification. Then we tried to figure out what to do with sink > 1, and ended up anchoring the initial letter to the start edge while performing alignment in the remaining space.

I think this creates an unnecessary split in how raised caps and sunken caps interact with the rest of the content of the originating line. Both types of initial letters are affected by hanging-punctuation and text-indent, and a raised initial letter can still impact subsequent lines if it has a descender anyway. So I think we might want to consider a different solution: treat sunken initial letters the same as raised initial letters for the purpose of text alignment, and shorten the subsequent line boxes based on its resulting position in both cases. This way the positioning of both types of initial letters is consistent.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5207 using your GitHub account

Received on Saturday, 13 June 2020 20:33:36 UTC