W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2019

[csswg-drafts] [css-text-decor] Limits on text-underline-offset to preserve semantic meaning (#4059)

From: Myles C. Maxfield via GitHub <sysbot+gh@w3.org>
Date: Wed, 26 Jun 2019 16:49:08 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-461078249-1561567747-sysbot+gh@w3.org>
litherum has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-text-decor] Limits on text-underline-offset to preserve semantic meaning ==
If an author puts `text-underline-offset` on an underline in a naive implementation, they could potentially make the underline look like a strikethrough. When this content is viewed on an older browser that doesn't support `text-underline-offset`, the semantic meaning of the text will appear to be changed (from struck-through to underlined). This is unfortunate. Instead, implementations should try to restrict the offsets on underlines so the underline always looks like an underline, rather than a strikethrough or overline.

There are a few questions to designing this:

1. Should the specification prescribe specific rules about where these limits are, or should the spec simply say that implementations should attempt to solve this problem?
2. Regardless of the result of 1, the spec should probably at least suggest some rules. So, what should the suggested rules be?
    1. The close-edge boundary for horizontal Latin text should probably be the baseline.
    2. What about Hindi text, that uses a hanging baseline?
    3. What about vertical text, where the baseline is at the same place a strikethrough should be?
    4. The underline is supposed to be one consistent stroke, regardless of the presence of child elements of differing sizes. Should a super large font-size child element push the limit outward?
    5. How about the other direction; the underline of one line of text shouldn't be able to look like an overline on the next line of text. For simple paragraphs this is probably straightforward, but what about when various elements on the next line have differing line-heights? Different sizes?


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4059 using your GitHub account
Received on Wednesday, 26 June 2019 16:49:11 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:10 UTC