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

Re: [csswg-drafts] [css-text] letter-spacing should not apply to the end edge of a line/span? (#1518)

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Thu, 02 Jul 2020 02:54:33 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-652750185-1593658472-sysbot+gh@w3.org>
It seems to me that the cases @kojiishi posted are largely requiring letter-spacing at the end of a span, in the middle of a line. They're not needing the letter-spacing at the end of the line. Letter-spacing at the end of the line is also the most problematic for the SVG case (and for CSS cases, too).

So my suggestion here is that:
    * We define for CSS Text Level 3 that letter-spacing is not applied at the end of the line. This solves the SVG case, improves rendering in many CSS cases, and will not break at least the letter-spacing-as-kerning examples that Koji posted.
    * We mark as undefined how letter-spacing applies at element/fragment boundaries in the middle of the line for Level 3, possibly describing the behaviors under consideration as options for Level 4.
    * We explore in level 4 the problem of letter-spacing applying at element at element/fragment boundaries in the middle of the line, possibly introducing a switch if necessary.

Does this seem like a workable plan?

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1518#issuecomment-652750185 using your GitHub account
Received on Thursday, 2 July 2020 02:54:34 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:11 UTC