Adjacent items with text decoration should be separated by a small gap
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 809
- Forks
- 66
- Avg merge
- 19m
- Merged PRs (30d)
- 1
Description
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ū').
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 browsers all lack support for this property.
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CSS Text Decoration Level 4 specification, especially text-decoration-skip-inset, then review the linked interactive tests and the Clreq handling interlinear punctuation guidance. Done means the syntax is finalised and the expected gap between adjacent underlined Chinese or Japanese items is reflected in the issue outcomes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- internationalization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100