Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjacent items with text decoration should be separated by a small gap #599

Open
r12a opened this issue Jan 31, 2024 · 5 comments
Open

Adjacent items with text decoration should be separated by a small gap #599

r12a opened this issue Jan 31, 2024 · 5 comments
Labels
doc:clreq Used for gap analysis (only) to indicate target document. gap The first comment in this issue is read by the gap-analysis document. i:text_decoration Other inline features l:zh Chinese p:basic s:hani Chinese script x:blink Blink needs to fix this. x:clreq This affects the clreq group of languages. x:gecko Gecko needs to fix this. x:jpan This affects the jlreq group of languages. x:webkit WebKit needs to fix this.

Comments

@r12a
Copy link
Contributor

r12a commented Jan 31, 2024

This issue is applicable to Chinese and Japanese.

When two underlined items appear side-by-side, the underline should be broken between the two. For example, although there are no gaps between characters in the code stream, there should be small visible gaps in the underlining of this example, which contains 2 proper nouns ('sòng', and 'ōuyángxiū') and a poem title ('míng fēi qū').

fig_underline_gap

More:

The GAP

None of the major browsers show this gap between text decorations.

css-text-decor-4 The CSS Text specification currently proposes the use of a text-decoration-skip-inset property, although it is not yet finalised and is not supported by any browser. The auto value should automatically produce the slightly shorter line lengths below the characters.

Gecko, Blink, and Webkit

Priority

These text decorations are used commonly in Chinese text, and decorations that run into each other creates readability problems. This gap is therefore being labelled as basic.

Tests & results

Interactive test, text-decoration-skip-inset: auto; will create a gap between words that are side by side and underlined using the u tag.

Interactive test, text-decoration-skip-inset: auto; will create a gap between spans that are side by side and underlined using text-decoration-line:underline.

Action taken

Awaiting finalisation of CSS syntax.

Outcomes

tbd

@r12a r12a added gap The first comment in this issue is read by the gap-analysis document. doc:clreq Used for gap analysis (only) to indicate target document. i:text_decoration Other inline features p:basic x:blink Blink needs to fix this. x:gecko Gecko needs to fix this. x:webkit WebKit needs to fix this. x:clreq This affects the clreq group of languages. x:jpan This affects the jlreq group of languages. labels Jan 31, 2024
@r12a
Copy link
Contributor Author

r12a commented Jan 31, 2024

The first comment in this issue contains text that will automatically appear in one or more gap-analysis documents as a subsection with the same title as this issue. Any edits made to that comment will be immediately available in the Editor's draft of the document. Proposals for changes or discussion of the content can be made by adding comments below this point.

Relevant gap analysis documents include:
ChineseJapanese

@xfq
Copy link
Member

xfq commented Feb 1, 2024

There's a typo in the example: 莫歐陽修明妃曲 should be 宋歐陽修明妃曲. 莫 means 'do not', while 宋 means Song.

@kidayasuo
Copy link

From JLReq TF meeting on 2024-2-6: Two adjacent underlines are hard to distinguish by nature and therefore such a usage should be avoided. It is not seen with printed books. JLReq TF thinks the improvement is desired but not critical.

@xfq
Copy link
Member

xfq commented Feb 27, 2024

This is more of a Chinese usage. IIUC Japanese generally does not use underlines to indicate proper nouns.

@xfq
Copy link
Member

xfq commented Feb 27, 2024

In the case of "dynasty + person's name", two proper nouns often appear together, like the example in #502 (comment)

@r12a r12a added s:hani Chinese script l:zh Chinese labels Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc:clreq Used for gap analysis (only) to indicate target document. gap The first comment in this issue is read by the gap-analysis document. i:text_decoration Other inline features l:zh Chinese p:basic s:hani Chinese script x:blink Blink needs to fix this. x:clreq This affects the clreq group of languages. x:gecko Gecko needs to fix this. x:jpan This affects the jlreq group of languages. x:webkit WebKit needs to fix this.
Projects
Status: Awaiting spec text
Development

No branches or pull requests

3 participants