W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2018

Re: [csswg-drafts] [css-inline] Line breaks inside drop-caps?

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Fri, 27 Jul 2018 09:24:14 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-408364157-1532683453-sysbot+gh@w3.org>
CJK typography uses titles which are typeset fairly similarly to dropcaps, can be long, and can wrap lines. (The alignment is `initial-letters-align: ideographic border-box`.)

![Example of drop heading in Japanese](https://www.w3.org/TR/jlreq/Images-en/img3_1_5.png)
https://www.w3.org/TR/jlreq/#d8e2717

Since the sizing of the heading is meant to be an integral number of lines, it feels that this could be achieve by `initial-letter` or something related to it, applied on the title after putting a `display: run-in` on it. And since such titles can wrap and span more lines, it initially made me think we wanted to handle line wrapping on `initial-letter` well enough to cope with that.

However, trying to follow that approach runs into a bunch of difficulties, and I no longer thing that `initial-letter` is the right way to handle this. It seems to me that a combination of `float` and [`block-step`](https://drafts.csswg.org/css-rhythm/#block-step) is likely to be a more workable approach.

Therefore, I don't think `initial-letter` has to handle this case, and we don't have to worry about it when deciding how line wrapping works.

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2886#issuecomment-408364157 using your GitHub account
Received on Friday, 27 July 2018 09:24:21 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 July 2018 09:24:21 UTC