type-em 的跨行处理问题
Open
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 4.5k
- Forks
- 675
- PR merge metrics
- No merged PRs in 30d
Description
看到着重号的实现方式是 :after 里的一长串 ・・・・,我在想这样的实现会不会有点不完美?
比如现在如果 <em class="type-em"></em> 跨行了,我试验的效果是完全不显示;对 <p class="typo-em"></p> 就只有第一行有效,而且如果有一行特别特别长,可能超过了这一串 ・・・・ 的长度,这样的情况怎么处理呢?
Contributor guide
No contributing guide indexed for this repository
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
The issue points to the CSS implementation of emphasis marks and the <em class="type-em"> and <p class="typo-em"> examples. Reproduce those cases with line wrapping, including a line longer than the repeated-dot string; compare the current rendering and establish what behavior should count as fixed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, html
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100