WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
157383
Implement “text-spacing” property as specified in CSS Text Module Level 4
https://bugs.webkit.org/show_bug.cgi?id=157383
Summary
Implement “text-spacing” property as specified in CSS Text Module Level 4
Minsheng Liu
Reported
2016-05-05 13:11:25 PDT
Spec URL:
https://drafts.csswg.org/css-text-4/#text-spacing-property
> This property controls spacing between adjacent characters on the same line within the same inline formatting context using a set of character-class-based rules.
This property is very important for CJK typography: 1. It controls the spacing between CJK characters and other characters, which is required by CJK typography. In the past content creators have to manually insert spaces. Such a practice often creates inconsistence across pages (not everyone is used to inserting spaces between letters and characters). Moreover, due to the web page’s font fallback rule, the width of a space character is hard to control. The default setting in many Western fonts might be too wide or too narrow for the purpose of separating CJK characters from letters visually. 2. It controls the spacing within sequence of full-width punctuations. For instance, a full-width open bracket “(” looks like: _( (I use underscore to represent the spacing) . When two such brackets are adjacent, it will look like: _(_( while it looks better with: _(( . Since the spacing is encoded inside the font, it is very hard to remove it—excepting wrapping the character inside a <span> and apply negative margin to it, which might have its own issues when dealing with line breaks. Note also the property “punctuation”, which
> Creates extra non-breaking spacing around punctuation as required by language-specific typographic conventions.
It currently only matters to French, which I am unfamiliar with. It should be very important though. I believe this feature will benefit users in CJK regions significantly, so I look forward to someone interested in implementing it. I am a bit inexperienced in C++ and lack the experience in hacking WebKit. However, if I have enough time I might give it a try.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-09-22 23:15:40 PDT
<
rdar://problem/100310977
>
Fuqiao Xue
Comment 2
2023-03-26 23:54:40 PDT
FWIW, the property has been refactored in Feb 2023:
https://github.com/w3c/csswg-drafts/commit/29661048af03edf0c093f339e03afc41803c6238
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug