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

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