W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2017

Re: [csswg-drafts] [css-text-decor] ink skipping should conform to glyph shape

From: Myles C. Maxfield via GitHub <sysbot+gh@w3.org>
Date: Fri, 10 Mar 2017 06:53:33 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-285592693-1489128812-sysbot+gh@w3.org>
While implementing this in WebKit, we found a few things:

1. You are right that the inside curve of the underline should follow the curve of the letter (typographically).
2. Using a mask-based approach is too slow. It's a deal-breaker.
3. Even when we used the mask-based approach, the mask would leave little underline floaty bits inside the lower loop of lowercase "g". These are typographically bad.
4. Our current approach is just to draw rectangles. However, one day we want to move to a trapezoid-based approach. Because most underlines are thin, this approach will probably be the best balance between performance and typography.

Maybe some implementations with less of an emphasis on speed want to use the mask based approach. Maybe even other want to use the mask-based approach, but somehow detect and eliminate the floaty bits. Browsers should be able to innovate here. The exact behavior should not be required / specced.

GitHub Notification of comment by litherum
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1093#issuecomment-285592693 using your GitHub account
Received on Friday, 10 March 2017 06:53:39 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:09 UTC