w3c / w3c/clreq

text-spacing-trim 的 trim-both 和 trim-start 属性

Open
#752 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

i:spacing
Dominant language
HTML
Stars
809
Forks
66
Avg merge
19m
Merged PRs (30d)
1

Description

trim-both:
每行开头的全角起始括号/引号使用半角字形,每行结尾的全角结束括号/引号使用半角字形。挤压连续标点符号。

trim-start:
每行开头的全角起始括号/引号使用半角字形,其他情况和normal相同。

normal:
每行开头的全角起始括号/引号使用全角字形。如果在两端对齐之前标点在每行末尾放不下,则把行尾的结束括号/引号变为半角。如果能放下,则使用全角字形。挤压连续标点符号。

大部分时候,trim-both似乎比trim-start更有用。trim-start是否有可以用到的地方?

感谢 @realfish 指出这个问题。


CSSWG issue: https://github.com/w3c/csswg-drafts/issues/13779

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked CSSWG issue 13779 and compare its discussion with the trim-both, trim-start, and normal behaviors described here. Done means reaching a clear conclusion about practical uses for trim-start and documenting or forwarding that conclusion to the relevant Chinese text layout requirements discussion.

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
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.